PHP - Apache configuration problems

Started by
5 comments, last by Silent Dragon 17 years, 7 months ago
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]
Whether you think you can or think you can’t, you’re probably right – Henry Ford
Advertisement
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.
Whether you think you can or think you can’t, you’re probably right – Henry Ford
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

should answer all of your questions...
Thanks, I've made some progress now the error has changed to:

The specified procedure could not be found.
Whether you think you can or think you can’t, you’re probably right – Henry Ford
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

This topic is closed to new replies.

Advertisement