Chapter 21. APPENDIX C: Configure the webserver

You need to ensure that your webserver is configured to recognize PHP files. You may need to add the following to your Apache httpd.conf file (usually in /etc/httpd/conf for *NIX, or C:\Program Files\Apache Group\Apache\conf for Windows) to define the search order for files. It is recommended that "index.html" (or "default.htm" for Windows) be the first entry, followed by "index.php". If you edit your Apache configuration, you must restart Apache for the changes to be incorporated (for example, "httpd restart").

--- CUT HERE ---

#

# DirectoryIndex: Name of the file or files to use as a pre-written HTML

# directory index. Separate multiple entries with spaces.

#

<IfModule mod_dir.c>

DirectoryIndex index.html index.php index.php3 index.pl index.htm

</IfModule>

--- CUT HERE ---

For Windows IIS and Personal Webserver, there are several ways to configure PHP support. Please consult the 'install.txt' file that comes with the PHP distribution.