|
|
#1 |
|
Triple-A Player
Join Date: Mar 2004
Location: South Australia
Posts: 117
|
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:- Code:
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. HELP............F#*KING WINBLOWS |
|
|
|
|
|
#2 |
|
All Star
Join Date: Jul 2004
Posts: 713
|
You might be able to get help at www.winforums.org.
|
|
|
|
|
|
#3 |
|
Prospect
Join Date: Oct 2005
Posts: 4
|
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 PHPIniDir "C:/php" Also add the following to DirectoryIndex index.php restart apache.. use the test.php file to test the php installation. code: <?php phpinfo(); ?> good luck. |
|
|
|
|
|
#4 |
|
Triple-A Player
Join Date: Mar 2004
Location: South Australia
Posts: 117
|
I managed to fix it. Thanks All
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|