These notes are from setting up apache to work with webmail. Note that the important step is that the webserver must be started with the secure option turned on. So to start/stop apache, now use the following command:
/etc/rc.d/init.d/httpd startssl
Note that the following notes are for hep1, where the home for the apache files is /var/apache2. On edg, the home for the apache files is /usr/local/apache2.0-48
The following rpms should have been installed before the apache, horde and imp rpms are installed.
The files in this directory came from an rpm file that was made especially for High Energy Physics. The horde project, which we are using for webmail, provided rpms for everything required, except apache2. This we needed to compile ourselves. But since the horde.rpm and imp.rpm files required an apache rpm, I created one so that the installation would go smoothly.
Basically, the files in this directory were created from running the following commands on the apache2 source code.
./configure --prefix=/var/apache2 --with-ssl=/var/openssl-0.9.7c --enable-ssl --enable-so
Then, all the files in /var/apache2 were put into an rpm. There were four extra files that I added, which are the following:
/var/apache2/NOTES.HEP--This file you are reading
The two conf files should simply be renamed to httpd.conf and ssl.conf respectively. Then, apache will be configured correctly for hep.uchicago.edu.
The file libphp4.so shouldn't be here. This file is provided by the php-4.2.2-0horde3.rpm. Unfortunately, I couldn't get this file to work correctly with apache. I got an error message about it not being able to be loaded. So, my solution was to create my own libphp4.so and include it in this rpm.
I made this file by compiling, but not installing the source for php-4.3.4. Here's how I configured it:
./configure --prefix=/usr/share --with-apxs2=/var/apache2/bin/apxs --with-gettext --with-xml --with-ldap --with-imap --with-imap-ssl --with-kerberos --with-PEAR=/usr/share/pear
Then run make
After it's compiled, I copied the file php-4.3.4/libs/libphp4.so to /var/apache2/modules.
With this file in place, I created the apache...rpm file. Once this file is installed, the horde and imp rpms can be installed as well.
Must have openssl-0.9.7c-hep.i386.rpm installed because the default version of openssl isn't new enough for apache2.
Download from www.apache.org. Get the latest version.
./configure --with-prefix=/usr/local/apache2.0
Edit /usr/local/apache2.0/conf/httpd.conf to the proper settings
If everything is working correctly, set it up so that it will automatically start each time the computer is booted.
ln -s /usr/local/apache2.0/bin/apachectl /etc/rc.d/init.d/httpd
Edit the apachectl file, so that the following lines are just after the #!/bin/ksh line:
# chkconfig: 2345 10 90
Now run chkconfig to create the proper links in /etc/rc.d/rc.*:
chkconfig --add httpd
/etc/rc.d/init.d/httpd stopssl
make
make install
/var/apache2/conf/httpd.hep.conf--A httpd.conf file set up for hep.uchicago.edu
/var/apache2/conf/ssl.hep.conf--An ssl.conf files set up for hep.uchicago.edu
/var/apache2/modules/libphp4.so--A 'working' php module for apache
/var/apache2/apache.spec--spec file used to create the rpm file
October 7, 2002
Unzip and untar
make
make install
Start the httpd daemon with /usr/local/apache2.0/bin/apachectl start
# description: Activates/Deactivates Apache web server