Datasheet

Finally, if you are still experiencing problems and you are running a Windows system, The Apache
Foundation has provided a nifty document about some other issues that may arise during installation.
You can view the document by going to
http://httpd.apache.org/docs-2.0/platform/
windows.html
.
Customizing Your Installation
Now that you know that everything works okay, you can adjust the configuration file to better suit your
needs. The main configuration file you use to make changes is
httpd.conf; this is found in the c:\
program files\Apache group\Apache2\conf
directory by default or wherever you have installed
Apache. You can open this file with any common text editor, such as Notepad.
Adding PHP to the Equation
In order for Apache to recognize a PHP file as one that needs to be parsed with the PHP engine, you
need to first locate the following lines in your
httpd.conf file:
#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
AddType application/x-tar .tgz
AddType image/x-icon .ico
Then add the following lines:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Now add the PHP module into your httpd.conf program so that Apache can properly parse PHP. In
your script, locate the following lines:
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule’ lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l’) do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
10
Chapter 1
04_579665 ch01.qxd 12/30/04 8:09 PM Page 10