# PHP - Apache configuration problems

This topic is 4187 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## 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


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 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.

It doesn't work.

##### 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"

Clicky here

##### Share on other sites
Thanks, I've made some progress now the error has changed to:

The specified procedure could not be found.

##### Share on other sites
Maybe you could try WAMP That installed nicely for me and I don't think I edited much. It works fine as a windows test server =]

Al