Edit php.ini in notepad and scroll down to the 'Paths and Directories' section.
- Replace
doc_root=
withdoc_root= "c:\apache2\apache2\htdocs"--------> Change file path accordingly if needed to whatever your Apache Servers document_root is. (In httpd.conf)
Save and Close php.ini.
Step 4 - Configure Apache2 for PHP 5
--------------
In Section 1 : Global Environment.
Locate #ExtendedStatus On and just below it add :-
LoadModule php5_module "c:/Apache2/php5/php5apache2.dll" AddType application/x-httpd-php .php # configure the path to php.ini PHPIniDir "C:/Apache2/php5"
The rest of 'httpd.conf' should be ok if the earlier tut was followed, so Save and Close this file then 'Stop and Start' the Apache Server service. (A soft start called a 're-start' differs slightly in operation from Stop/Start in regards to the Apache Server and I have had problems with it in the past so don't recommend it until all bugs are squashed!)
Ok, so lets get testing!
Back to Download & Install PHP 5 | Forward
to Testing your Installation ![]()

