Datasheet

P1: KTX
WY027-01 WY027-Mercer WY027-v2.cls June 5, 2004 0:44
Getting Up and Running
Figure 1-9
If Apache is not already installed and running, you can use these commands for installing it from the
Terminal:
lynx http://httpd.apache.org/download.cgi
gzip -d httpd-2_0_NN.tar.gz
tar xvf httpd-2_0_NN.tar
./configure --prefix=PREFIX
make
make install
vi PREFIX/conf/httpd.conf
PREFIX/bin/apachectl start
You must replace the NN with the minor version number, and PREFIX with the correct path in which
youd like to install Apache (the default is /usr/local/apache2).
Conguring Apache to Run PHP5
If PHP5 is installed as a DSO (as the example installation was), you need to check the Apache
conguration le (named httpd.conf) to make sure it has several entries. In the Fedora installation,
you can nd the httpd.conf le in the /etc/httpd/conf folder. Open any text editor and lets modify
the httpd.conf le.
First, ensure that PHP is enabled on your Apache server. Look for a lot of lines that begin with the word
LoadModule. Among them you should nd a line like this:
LoadModule php5_module /usr/local/apache/lib/libphp5.so
17