Jump to content
  • Advertisement
Sign in to follow this  
Peter Conn

PHP - Apache configuration problems

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

If you intended to correct an error in the post then please contact us.

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

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!