Forum Moderators: phranque

Message Too Old, No Replies

Apache not starting after changes to config file

         

MrForbes

4:29 am on Mar 20, 2005 (gmt 0)

10+ Year Member



I am running Apache 2 with PHP4. I had to reconfigure apache to run the php4 as a module. However everytime I try to start Apache I get the following syntax error.

Invalid LoadModule path\x93c:/php/sapi/php4apache2.dll\x94

the location of the dll is correct. If I comment out the
LoadModule php4_module “c:/PHP/sapi/php4apache2.dll”
apche will load but it will not understand PHP.

What the heck am I doing wrong?

Thanks

sitz

4:38 am on Mar 20, 2005 (gmt 0)

10+ Year Member



If that '\x93' '\x94' stuff is in your config file, that may well be the issue. I also note that 'php' is uppercase in one line and lowercase in another, but I don't /think/ that matters on win32.

MrForbes

4:42 am on Mar 20, 2005 (gmt 0)

10+ Year Member



The /x93 /x94 stuff is not actually in the config file. Just the
LoadModule php4_module “c:/PHP/sapi/php4apache2.dll”

Not sure what that means.

I did try changing the case of PHP. It made no difference. I even changed the location of the dll to a simpler location just to check. No go.

Darren

sitz

4:48 am on Mar 20, 2005 (gmt 0)

10+ Year Member



Does your error log show anything other than the error you pasted above?

MrForbes

5:02 am on Mar 20, 2005 (gmt 0)

10+ Year Member



It says:

Syntax error on line 134 of C:/Program Files/Apache Group/Apache2/conf/httpd.config:

Invalid LoadModule path \x93c:/PHP/sapi?php4apache2.dll\x94

That is it exactly. Hope this helps.

sitz

5:19 am on Mar 20, 2005 (gmt 0)

10+ Year Member



So, here's a random thought. Are you sure you're using the same quotes that are in use for the other LoadModule directives? There are "plain" double-quotes:

--> "

and 'fancy' double-quotes:

--> ”

Make sure you're using the plain ones.

MrForbes

1:59 pm on Mar 20, 2005 (gmt 0)

10+ Year Member



Man you rock! That was it. Now lets see if all is well with the php. Thanks alot for being so detailed.

Darren

MrForbes

2:00 pm on Mar 20, 2005 (gmt 0)

10+ Year Member



Apache is reading PHP properly.. YES!