List of steps involved in getting PHP5 to work with a pre-installed Apache server on Windows.
- Download the file “php-5.3.3-Win32-VC6-x86.zip” from “http://windows.php.net/download/”
- Extract contents of this file to C:/PHP/
- Copy C:/PHP/php.ini.development to a new file php.ini in the same folder
- In the httpd.conf file of Apache, add the following lines after the LoadModule block.
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddHandler application/x-httpd-php .php<
# configure the path to php.ini
- Restart Apache.
Thats it ! PHP pages should now be processed and displayed by apache. To test, create a file PHPTest.php in folder “[Apache-root]/htdocs/” with following content.
In the browser open the URL “http://localhost/PHPTest.php”. This should now display the PHP engine details.
Now, as required the document root, extensions folder, available extension etc for PHP can be configured in the file C:/PHP/php.ini.
Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.