![]() |
![]() Second Summer 2009 |
The steps are listed below.
If you have already installed Apache:
Stop it:(Note:
~/apache/bin/apachectl stopWipe out the installation folder:
yes | rm -ir ~/apache/Clean up the nobackup folder of previous installation files:
yes | rm -ir /nobackup/username/httpd*
username denotes, as always, denotes your actual username). Now you can start the installation process.
makenobackup
cd /nobackup/usernamePlease replaceusernamewith your actual username.
pwd to make sure you're indeed in that folder.
Don't forget the period at the end of the command (it's indicating the current folder).cp /l/www/classes/a348/sum2006/software/httpd-2.2.2.tar.gz .
gunzip httpd-2.2.2.tar.gz
This results in a new folder being created, with lots of files being placed in it.tar xvf httpd-2.2.2.tar
The new folder's absolute path is: /nobackup/username/httpd-2.2.2
(Note: as always username denotes your actual username.)
cd /nobackup/username/httpd-2.2.2
(Note: username denotes, as always, your actual username.)
./configure --prefix=/u/username/apache --enable-so
(Note: username denotes, as always, your actual username.)
This configures your installation.
This actually compiles the source files as configured.make
(Note: if you need to redo these steps: 10, 11, 12, you need to start withmake install
make clean).
~/apache folder that has your Apache installation:
cd ~/apache
conf folder and open httpd.conf for editing:
cd conf pico httpd.conf
Listen 80 with Listen 44xxx
(Note: 44xxx denotes your port number, see below. For example, mine is 44063).
User nobody with User username.
(Note: username denotes your actual username, and daemon could be there instead of nobody).
httpd.conf and start your server:
Now your server should be running and accessible from one of the links below:~/apache/bin/apachectl restart
44039 44065 Brumbaugh, Margaret Susan 44040 44066 Sorosky, Nicholas Tyler 44041 44067 Turner, Sarah Megan 44042 44068 Amanbayev, Talgat 44043 44069 Baker, Jordan Keith 44044 44070 Castner, Dean A 44045 44071 Fernandez, Francis Paul 44046 44072 Jefford, Logan Nance 44047 44073 Kang, Yoon Mo 44048 44074 Skaggs, Timothy Lee 44049 44075 Al-Azdee, Mohammed 44050 44076 Liu, Hongliu 44051 44077 Nehrt, Nathan 44052 44078 Pejaver, Vikas 44053 44079 Rectanus, Lauren Caitlin 44054 44080 Wright, Scott N 44055 44081 Huang, Gang 44056 44082 Keif, Echo Marie 44057 44083 Paulraj, Sushmitha 44058 44084 Sabetti, Leonard 44059 44085 Sankaranarayanan, Madhuvanthi 44060 44086 Shah, Neethu 44061 44087 Sobieralski, Joseph Bernard 44062 44088 Swaminathan, Rajeswari 44063 44089 German, Dan-Adrian 44064 44090 Dan Wick
~/apache/htdocs and edit your index.html file:
pico ~/apache/htdocs/index.html
~/apache/cgi-bin/ and create this program:
Call it#!/usr/bin/perl print "Content=type: text/html\n\n"; $a = localtime; print $a;
one. Before you run it make it executable: chmod 700 ~/apache/cgi-bin/one
Access it from the web at http://silo.cs.indiana.edu:44xxx/cgi-bin/one
Note: 44xxx denotes your port, as listed above.