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
you’d like to install Apache (the default is /usr/local/apache2).
Configuring Apache to Run PHP5
If PHP5 is installed as a DSO (as the example installation was), you need to check the Apache
configuration file (named httpd.conf) to make sure it has several entries. In the Fedora installation,
you can find the httpd.conf file in the /etc/httpd/conf folder. Open any text editor and let’s modify
the httpd.conf file.
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 find a line like this:
LoadModule php5_module /usr/local/apache/lib/libphp5.so
17