# -------------------------------------
# In order to process the request in the PHP5 engine you have
# to load the corresponding PHP5 module. By loading this module
# you are connecting the Apache Webserver with the PHP5 engine so
# that the handling of the php scripts will be done in the PHP5 environment.
LoadModule php5_module modules/php5apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php5
Action application/x-httpd-php "c:\php\php_5.1.2\php.exe
Note: "c:\php\php_5.1.2\php.exe" is the installation dir of your PHP engine so just adapt it to your path.
AddType .... .php and php5 means that you can request both php or php5 pages.
4. Go to the PHP engine installation directory and look for the "php.ini-dist" file and rename it as "php.ini"
5. Copy the "php.ini" file to the system root directory. e.g. c:\%systemroot% in Windows XP is just c:\Windows
6. Open the "php.ini" file and put this directive on it.
doc_root = c:\WebServer 2.2.4\Apache2\htdocs
extension_dir = your php engine installation dir
7. If you are running under NTFS then make sure that the user the webserver is running as has read permision for the php.ini file.
Test the entire environment
==================
1. Open e.g. a wordpad or any word processor, create a new file, name it "Test.php" and write on it this statement:
<? phpinfo(); ?>
2. Save that file in the "htdocs" folder of your web server. This is the document root.
3. Start the apache web server
4. Open your web browser and write the statement:
http:\\localhost\test.php
Result
====
If your php engine is working well then the php enviroment information is displayed on the screen.
Hope this will solve your problem.
Good Luck!