954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Apache will not start with PHP enabled

Hi all!
After a recent upgrade to PHP 5.3.1, I cannot get my apache http server to start. The only way I can seem to get it started is by commenting out the lines that make PHP work. Thinking, naturally, that the recent PHP was at fault, I reinstalled it. When that did not work, I downloaded the previous version and installed it. Apache still would not start. I also tried completely uninstalling both Apache and PHP and reinstalling both the old and new versions. Still, nothing. Any ideas?

dstrout
Newbie Poster
5 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

Could you include the contents of your php.conf (Or wherever your PHP is configured in httpd.conf)

samarudge
Posting Whiz
359 posts since May 2008
Reputation Points: 26
Solved Threads: 31
 

My httpd.conf file is attached.

Attachments httpd.conf_.txt (17.7KB)
dstrout
Newbie Poster
5 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

Since, after the first reply, nobody else has helped me, I tried uninstalling apache, mysql, and php and just installing wamp . At least that works.

dstrout
Newbie Poster
5 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

Even I faced the same problem, searched net for hours but could not find the solution. Thank you very much for pointing out Wamp.

Wamp is working great. Its very good alternative.

Thanks a lot again.

shailesh123
Newbie Poster
1 post since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

Even I faced the same problem, searched net for hours but could not find the solution. Thank you very much for pointing out Wamp.

Wamp is working great. Its very good alternative.

Thanks a lot again.


As a note, WAMP is generaly considered to be unsecure and should NOT be used for production sites or anything accessible from outside your network. Apache/PHP are not natively compatible with Windows and should be run from Linux/Unix systems for anything going live. If you want to run your site of windows you should consider IIS on Windows Server with PHP running through FastCGI

samarudge
Posting Whiz
359 posts since May 2008
Reputation Points: 26
Solved Threads: 31
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: