Server login changes $HTTPD_PORT from 80 back to 8991
- Product: Aleph
- Product Version: 20, 21, 22, 23
- Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care
Description
We've changed the following files to make $HTTPD_PORT be 80 (rather than 8991), but each time we log in, $HTTPD_PORT switches back to 8991. We've each done "source aleph_start", shut aleph down, cleared the utf files, and rebooted the server.
We're concerned that when aleph restarts each day (via the job list) that the port is going to change back.
Changed files:
alephe/aleph_start
alephe/www_server.conf
alephe/apache/conf/httpd.conf
alephe/apache/conf/ssl.conf
alephe/apache/bin/apachectl_auto
Resolution
When you log in, the /exlibris/aleph/a23_1/alephm/.cshrc file is executed. It looks like this:
echo "Execute master cshrc"
umask 002
setenv LOGIN_PID $$
source /exlibris/aleph/a23_1/alephe/aleph_start
source $alephm_dev/alephm/prof_master
setenv ALEPH_SHELL /bin/tcsh
setenv ALEPH_ADMIN ALEPH_ADMIN
source $aleph_proc/aleph_admin
setenv ALEPH_CTX CTXSYS
source $aleph_proc/aleph_ctx
You will note that it has "source /exlibris/aleph/a23_1/alephe/aleph_start". That is, it is source-ing the *a-tree* aleph_start, which has "HTTPD_PORT 8991".
Saving this .cshrc and changing the "a23_1" to "u23_1" corrected the problem: when one logs in/out/in the HTTPD_PORT stays as 80.
- Article last edited: 3-Jan-2018