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

    How to set up port 80 for Apache server

    • Product: Aleph
    • Product Version: 20, 21, 22, 23

    Question

    How to set up port 80 for Apache server in Aleph?

    Answer

    1. Shutdown the WWW server with util W
    2. Stop Apache server (as UNIX user aleph)

    apcb
    apachectl stop

    1. Change file $httpd_root/conf/httpd.conf from

    ServerName <server-name>:8991
    Listen 8991

    to

    ServerName <server-name>:80
    Listen 80

    1. Change file $httpd_root/htdocs/.index.html from

    var loc = "http://<server-name>:8991/F?RN="+session;
    to
    var loc = "http://<server-name>:80/F?RN="+session;

    1. Change occurrences of 8991 in $httpd_root/htdocs/main.html to 80. (Note: these lines in main.html are no longer used in normal circumstances, but, for consistency, we suggest changing them.)
    2. Change file $alephe_root/aleph_start from

    setenv HTTPD_PORT 8991
    setenv PDS_PORT 8991

    to
    setenv HTTPD_PORT 80
    setenv PDS_PORT 80

    1. Activate settings in $alephe_root/aleph_start: source $alephe_root/aleph_start
    2. Start Apache server (as UNIX user root)

    su
    Password:
    # $httpd_root/bin/apachectl_auto

    1. Start WWW server (as UNIX user aleph)
    2. Test access to OPAC

    Additional Information

    • To see the current Apache port use

    echo $HTTPD_PORT

    • For automatic startup change

    /exlibris/startup/init.dat
    aleph

    to
    root
    Example
    Old:
    Y:apache:aleph:httpd:/exlibris/aleph/a20_1:../a20_1:apachectl_auto:apachectl
    New:
    Y:apache:root:httpd:/exlibris/aleph/a20_1:../a20_1:apachectl_auto:apachectl

    Note:  the "a20_1" will need to be changed for your particular version/instance, such as:  a23_1 .


    • Article last edited: 24-Jun-2014
    • Was this article helpful?