Sign in to follow this  
Peter Conn

PHP - Apache configuration problems

Recommended Posts

Hiya I know this is a long shot and doesn't have much to do with game programming but I was wondering if anyone could help me with it: I have PHP5 and Apache 2.2 on my machine (Windows XP). I installed Apache earlier this year and I got PHP with a book ("Sam's Teach Yourself: PHP, MySQL and Apache all in one"). - I have renamed the "php.ini-recommended" file to "php.ini" and moved it to "C:\Windows". - I have copied "php5ts.dll" to "C:\Windows\system" and in despiration to "C:\Windows\system32" - I have opened the Apache configuration file and added the lines:
LoadModule php5_module c:/php5/php5apache2.dll
AddType application/x-httpd-php .php .phtml .html



in the appropriate places. However when I try to start Apache and this came up:
httpd.exe: Syntax error on line 115 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/http.conf: 
Cannot load C:/PHP5/php5apache2.dll into server: The specified module could not be found.



Does anyone know how to sort this out, and if not could someone please give me a link to a forum where this question would be more appropriate. [Edited by - Peter Conn on September 7, 2006 12:31:45 PM]

Share this post


Link to post
Share on other sites
Have you tried putting the DLLs in the Apache binary directory? I mean if the error reads "C:/PHP5/php5apache.dll" ...

I did that on my server, but that one is running PHP4 on Windows 98 so I'm not sure the same still applies. Been a long time.

Share this post


Link to post
Share on other sites
It's been a while since i've worked with apache on windows but try putting your path to the dll in quotes. If that doesn't work try using backslashes instead of forward slashes:

"c:/php5/php5apache2.dll"
"c:\php5\php5apache2.dll"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this