|09-15-2005, 04:05 PM||#1|
Join Date: Mar 2004
Location: South Australia
Apache 2.0.54 & PHP 5.0.5 on Windows XP
I know this is not really the best place for this question, But I'm just asking here hoping someone will answer with something useful.
I've done plenty of apache + php installations on unix,linux and MacOS X (of course) but this on has me stumped.
- I installed Apache 2.0.54 using the .msi and it works fine.
- Extracted PHP from the zip archive to c:\php\ ( God I hate those fraking paths )
- Made a copy of php.ini-recommended as php.ini
- Added c:\php the the systems PATH variable
- Added to httpd.conf:-
LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/php"
Tried permissions, setting the PHPRC system variable and many other things.
Apache says it its version string that it has loaded the php module, But the module does not seem to be parsing up the content type application/x-httpd-php at all.
Plus no problems are showing up in the logs.
|10-04-2005, 05:44 PM||#3|
Join Date: Oct 2005
YOu have to download the Zip file and not the msi installer. It seems that the installer doesn't install all the code required to run php5 on windows. Then add the following to the httpd.conf file for apache at the end of the file.
# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
Also add the following to DirectoryIndex
restart apache.. use the test.php file to test the php installation.
|Display Modes||Rate This Thread|