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

    How to set up port 80 for Apache server

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

    Desired Outcome Goal:
    How to set up port 80 for Apache server in Aleph?

    Procedure:
    1. Shutdown the WWW server with util W
    2. Stop Apache server (as UNIX user aleph)
    apcb
    apachectl stop

    3. Change file $httpd_root/conf/httpd.conf
    from
    ServerName <server-name>:8991
    Listen 8991
    to
    ServerName <server-name>:80
    Listen 80

    4. 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;

    5. 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.)

    6. Change file $alephe_root/aleph_start
    from
    setenv HTTPD_PORT 8991
    setenv PDS_PORT 8991
    to
    setenv HTTPD_PORT 80
    setenv PDS_PORT 80

    7. Activate settings in $alephe_root/aleph_start
    source $alephe_root/aleph_start

    8. Start Apache server (as UNIX user root)
    su
    Password:
    # $httpd_root/bin/apachectl_auto

    9. Start WWW server (as UNIX user aleph)

    10. Test access to OPAC

    Additional Information

    1) To see the current Apache port use
    echo $HTTPD_PORT

    2) 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

    Category: Web OPAC (500)


    • Article last edited: 6/24/2014