Edit your newly copied 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 Apache 2.2.2 for PHP 5.2-dev
--------------
Edit your Apache config file 'httpd.conf'
Locate all the LoadModule entries near the top of the file and just below them add :-
# For PHP 5 do something like this:
LoadModule php5_module "d:/PHP5/php5apache2_2.dll"
# configure the path to php.ini
PHPIniDir "D:/PHP5"
AddType application/x-httpd-php .php
Ensure the path to the php5apache2_2.dll and to the PHP directory reflect your setup, not neccessarily what I have above. Note that the dll we want here is called php5apache2_2.dll and not the php5apache2.dll that earlier versions of PHP came with.
The rest of 'httpd.conf' should be ok if the earlier tut was followed, so Save and Close this file then 'Stop and Start' or 'Restart' the Apache Server service.
Ok, so lets get testing!
Back to Download & Install PHP 5.2 | Forward
to Testing your Installation ![]()

