Spring Semester 2005
This installation should last about 40 minutes.
1. Log into your
2. Make sure you're in the home directory (
3. Create a new, empty
apache directory, and move there.
You can, if you want, skip to step 10, now.cd ~ mkdir apache cd apache
4. Start netscape in the background (
netscape &) then connect to:
5. Click seventh link on left, "Apache Server".http://www.apache.org
6. Click first link on the column at right, "Download".
7. Click on the
httpd link on the page (sixth or seventh on the page). Then
click on the
file that is listed as the
8. The dialog window that will pop up should offer to save the file as
Current Release 1.3.26(version number).
Press OK, then wait for the download to complete (may take more or less depending on the load)./u/username/apache/apache_1.3.26.tar.gz
9. Exit Netscape.
10. You could also start by copying this from the class account:
You can copy like this:/l/www/classes/a348/software/apache_1.3.26.tar.gz
Make sure you replace the lightgrey text with your actual username.cp /l/www/classes/a348/software/apache_1.3.26.tar.gz /u/username/apache
11. Uncompress the file using
12. Unpack the resulting archive usinggunzip apache_1.3.26.tar.gz
xvfas command-line switches).
13. From here on you will need to check your quota frequently, so do it now, once.tar xvf apache_1.3.26.tar
14. Remove thequota -v
.tarfile, check quota.
15. Go into therm -i *.tar
apache_1.3.26directory and look around.
more to look at
Here's my run through it:./configure --prefix=/u/username/apache/apache_1.3.26
18. Now runburrowww.cs.indiana.edu% pwd /nfs/paca/home/user1/dgerman/apache/apache_1.3.26 burrowww.cs.indiana.edu% ./configure --prefix=/u/dgerman/apache/apache_1.3.26 Configuring for Apache, Version 1.3.26 + using installation path layout: Apache (config.layout) Creating Makefile Creating Configuration.apaci in src Creating Makefile in src + configured for Solaris 270 platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules + checking sizeof various data types + doing sanity check on compiler and options Creating Makefile in src/support Creating Makefile in src/os/unix Creating Makefile in src/ap Creating Makefile in src/main Creating Makefile in src/lib/expat-lite Creating Makefile in src/modules/standard burrowww.cs.indiana.edu%
Here's my run:
19. Then runburrowww.cs.indiana.edu% make ===> src make: Entering directory `/nfs/paca/home/user1/dgerman/apache/apache_1.3.26' make: Entering directory `/nfs/paca/home/user1/dgerman/apache/apache_1.3.26/src' ===> src/os/unix gcc -c -I../../os/unix -I../../include -DSOLARIS2=270 -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` os.c gcc -c -I../../os/unix -I../../include -DSOLARIS2=270 -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` os-inline.c [lots deleted] sed
apxs \ -e 's%@TARGET@%httpd%g' \ -e 's%@CC@%gcc%g' \ -e 's%@CFLAGS@% -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED `../apaci`%g' \ -e 's%@CFLAGS_SHLIB@%%g' \ -e 's%@LD_SHLIB@%%g' \ -e 's%@LDFLAGS_MOD_SHLIB@%%g' \ -e 's%@LIBS_SHLIB@%%g' && chmod a+x apxs make: Leaving directory `/nfs/paca/home/user1/dgerman/apache/apache_1.3.26/src/support' <=== src/support make: Leaving directory `/nfs/paca/home/user1/dgerman/apache/apache_1.3.26' <=== src burrowww.cs.indiana.edu%
Here's my run through it:
20. Read the summary note (see above).burrowww.cs.indiana.edu% make install make: Entering directory `/nfs/paca/home/user1/dgerman/apache/apache_1.3.26' ===> [mktree: Creating Apache installation tree] ./src/helpers/mkdir.sh /u/dgerman/apache/apache_1.3.26/bin [lots deleted] ./src/helpers/install.sh -c -m 644 ./conf/magic /u/dgerman/apache/apache_1.3.26/conf/magic.default [PRESERVING EXISTING CONFIG FILE: /u/dgerman/apache/apache_1.3.26/conf/magic] <=== [config] make: Leaving directory `/nfs/paca/home/user1/dgerman/apache/apache_1.3.26' +--------------------------------------------------------+ | You now have successfully built and installed the | | Apache 1.3 HTTP server. To verify that Apache actually | | works correctly you now should first check the | | (initially created or preserved) configuration files | | | | /u/dgerman/apache/apache_1.3.26/conf/httpd.conf | | | and then you should be able to immediately fire up | | Apache the first time by running: | | | | /u/dgerman/apache/apache_1.3.26/bin/apachectl start | | | Thanks for using Apache. The Apache Group | | http://www.apache.org/ | +--------------------------------------------------------+ burrowww.cs.indiana.edu%
httpd.conf in the new server's
This file was generated automatically by the installation process.
(Copy it into
httpd.conf-backup before making any changes.)
ServerAdmin as follows:
You have to make sure youburrowww.cs.indiana.edu% diff httpd.conf httpd.conf-backup 76c76 < LockFile /tmp/apache_1.3.26.lockfile.dgerman --- > #LockFile /u/dgerman/apache/apache_1.3.26/logs/httpd.lock 238c238 < Port 13280 --- > Port 8080 252c252 < User dgerman --- > User nobody 260c260 < ServerAdmin email@example.com --- > ServerAdmin firstname.lastname@example.org 952,958d951
So I only changed:
LockFiledirective (please be careful with that!)
Use:Remember to remove the pound sign (
#) in front of it before editing!
Your port will be
176xxas listed on the students page.
Please make sure you use your username.
23. Check your new web server over the web at/u/username/apache/apache_1.3.26/bin/apachectl start
Here's mine. (Change your
Note: also try the Korean or Japanese version.
24. Set your
crontab for your server to be re-started
(gracefully) every morning at 8:10am.
That's something we will do next week in lab.