Go Back   The macosxhints Forums > General Discussion > The Coat Room



Reply
 
Thread Tools Rate Thread Display Modes
Old 09-15-2005, 04:05 PM   #1
morphis
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"
Then if I try to load a php in the web-browser it downloads the source.

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
morphis is offline   Reply With Quote
Old 09-15-2005, 06:06 PM   #2
guardian34
All Star
 
Join Date: Jul 2004
Posts: 713
You might be able to get help at www.winforums.org.
guardian34 is offline   Reply With Quote
Old 10-04-2005, 05:44 PM   #3
WoodSt
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.
WoodSt is offline   Reply With Quote
Old 10-04-2005, 08:00 PM   #4
morphis
Triple-A Player
 
Join Date: Mar 2004
Location: South Australia
Posts: 117
I managed to fix it. Thanks All
morphis is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 09:49 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.