Datasheet

P1: KTX
WY027-01 WY027-Mercer WY027-v2.cls June 5, 2004 0:44
Chapter 1
Figure 1-8
attacks such as accessing system les and Web documents can be launched against your server. When
you compile PHP5 with the with-apache option, you will have a Server Application Programming
Interface (SAPI), which provides a higher level of performance and security over the CGI method.
Setting up Apache for PHP
To install Apache, use RPMs or download and compile the source code. But Apache probably comes with
your Linux distribution, and may already be properly installed. On my Red Hat Fedora installation,
Apache was already installed, and all that was needed to verify this was go to the Red Hat button, choose
System Settings
Server Settings Services, and look for httpd, as shown in Figure 1-9.
Httpd (all lowercase) means HTTP daemon, and daemon is the name of services running in the
background on Linux machines. So httpd means the HTTP daemon running in the background, for
example, the Web server.
If youre using Linux visually (running KDE, for example), click the httpd service to see whether its
running. If it isnt, start it, and then open your browser and enter http://localhost. You should see a
Web page such as the one shown in Figure 1-10.
16