Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Starting apache with util w/3/6 gives errors

    • Article Type: General
    • Product: Aleph
    • Product Version: 18.01

    Description:
    The apache for the Test instance is running. But when we do util w/3/6, we see the following messages:

    /exlibris/aleph/u20_2/alephe/apache/bin/apachectl restart: httpd not running, trying to start
    (98)Address already in use: make_sock: could not bind to address [::]:8992
    no listening sockets available, shutting down
    Unable to open logs
    /exlibris/aleph/u20_2/alephe/apache/bin/apachectl restart: httpd could not be started

    Also, the /exlibris1/aleph/u20_2/alephe/apache/logs directory does not show any httpd.pid file.

    Resolution:
    This is somewhat like KB 8192-1015.

    We saw this in the /exlibris/startup/init.dat file on libcat:
    Y:apache:root:httpd:/exlibris/aleph/u20_2:../a20_2:apachectl_auto:apachectl
    Y:apache:root:httpd:/exlibris/aleph/u20_1:../a20_1:apachectl_auto:apachectl

    and we saw that the apache files in the Test instance were owned by root.

    Since the Test apache is 8992, it does *not* need to be root. If apache is started as root, then the UTIL-W-3-6 will not work since it uses the aleph user in the case where the port is over 1000.

    We changed the ownership of these /exlibris1/aleph/u20_2/alephe/apache/ files from root to aleph.

    Then we stopped apache and were able to start it successfully using UTIL-W-3-6.

    Finally, we went into /exlibris/startup/init.dat (which is the "root" of the problem) and changed this line from:

    Y:apache:root:httpd:/exlibris/aleph/u20_2:../a20_2:apachectl_auto:apachectl

    to:

    Y:apache:aleph:httpd:/exlibris/aleph/u20_2:../a20_2:apachectl_auto:apachectl

    {We left the apache line for u20_1 (Prod) as root.}


    • Article last edited: 10/8/2013