1 - download new Apache source http://www.apache.org/httpd.html
2 - mv the apache source file to /usr/src/apache (My preference, but it can be unpacked anywhere)
3 -unpack the new Apache with:
tar zxvf apache_X_X_X_tar.gz -- if the file ends in tar.gz(where XXX is the version)
4 - cd apache_X.X.X directory
5 - Read the README and INSTALL files etc...
6 - cd src - to change to the apache source directory
7 - read the README and INSTALL files etc.
8 - Edit the Configuration file in the src directory to select modules to be compiled in the new Apache.
9 - cd .. to change back into the root directory for this new version of Apache.
10 - Now to compile and install it.
./configure
make
then either cp httpd /usr/local/apache/bin/httpd to replace existing httpd (Slackware and Redhat may have it in sbin instead of bin)
or make install to install all Apache files and subdirectories -- will replace existing httpd.conf--Yikes!!
Often there are changes made in the httpd.conf file in new versions to reflect the server changes/additions.
11 - edit apachectl in apache/bin or apache/sbin. Need to edit:
PIDFILE=where the pid file is
HTTPD=where the httpd file is
STATUSURL="http://localhost/server-status" (should work ok as is)
12 -Edit your conf/httpd.conf file to check the following
ServerRoot "/usr/local/apache" or wherever
PidFile /usr/local/apache/logs/httpd.pid should be the same as the above
PIDFILE in step 11
ServerAdmin who@domain (maybe correct/useable as installed)
DocumentRoot "/usr/local/apache/htdocs"
UserDir public_html (public_html is the default. Just make sure each
user has one.)
DirectoryIndex index.html index.htm index.shtml default.html default.htm
DirectoryIndex is the starting page name and the search order.(index.html is
the default)
| for cgi | |
| uncomment and edit: | Addhandler cgi-script .cgi |
| for serverside includes | |
| uncomment and edit | AddType text/html .shtml .htm .html |
| AddHandler server-parsed .shtml .htm .html |
Uncomment the <Location /server-status> section
and edit the Allow from .your_domain.com with one or more IPs or domain names.. let these and only these be able to http://servername-or-IP/server-status
Uncomment or add in a NameVirtualHost with the servers IP
Add any <VirtualHost section>
13 - edit the startup files as needed.
Slackware is /etc/rc.d/rc.httpd
Redhat is /etc/rc.d/init.d/httpd.org
14 - start it up either using the startup file or cd to the apache/bin directory and using ./apachectl start
Note that you may need to vi apachectl to edit the PIDFILE and HTTPD to where they really are.
15 - watch for errors then use a web browser on a pc to try it out... try a virtual host domain and a users directory.
16 run apachectl graceful after any changes to the httpd.conf file
Last modfied on Monday, 29-Jan-2001 21:31:46 CST
rddecker@lanranger.net