Cannot start Apache2 after trying to add PHP module
Posted by: jthomas (---.sierrabravo.net)
Date: March 01, 2007 09:22PM

According to this HowTo:
[www.troywolf.com]
which I was following, I need to change httpd.conf to accept the PHP5 modules into Apache2.

I added these lines, as the tutorial says:
At the end of the list of LoadModule lines, add these 4 lines:
# PHP5
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "c:/php/"

but when I save that files and restart Apache2, the service fails. If I comment out those lines (with a # in the front) everything is happy.

Anyone have ideas or suggestions?

Options: ReplyQuote
Re: Cannot start Apache2 after trying to add PHP module
Posted by: jthomas (---.sierrabravo.net)
Date: March 01, 2007 10:01PM

Solved this; posting here for future searchers:

I should have been using this setup (or, well, this setup works):

LoadModule php5_module c:/php/php5apache2_2.dll
AddType application/x-httpd-php .php
PHPIniDir "C:\php\"

The changes include:
_2 on the first line, to load the proper module for my Apache2;
a real DOS path (using \backslashes, not the *nix /frontslashes) on the first line;
a \backslash at the end of the third line (I am guessing this too could be a real DOS path if the quotes are removed)

Thanks again! I'll be back!

Options: ReplyQuote


Sorry, only registered users may post in this forum.