How to install PHP under aparch windows
- Details
- Category: Web
- Published on Thursday, 28 April 2011 03:15
- Written by Super User
- Hits: 354
1. Download the VC6 ZIP version (as said by php.net VC9 complied version does not run well under aparch). http://windows.php.net/download/
2. Unzip and copy to c:\php
3. Set httpd.conf to run php as handler.
4. if httpd can not start . check the event log from system something like this "httpd.exe: Syntax error on line 182 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/php/php5apache2.dll into server"
5. Check the httpd.conf and correct spell the path, make sure DO NOT copy the same path as the php manual book( what a sucker wrong guide) .
Use below will work
#
LoadModule php5_module "C://php//php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C://php"
then restart

