Click to See Complete Forum and Search --> : standalone -> OK, as service -> error


Anon
12-19-2001, 01:32 PM
I've succeded in installing Apache + PHP + MySQL on a Windows XP. Everything works fine when Apache is started as standalone, but when i try to start Apache as a service i get an error at the following line in httpd.conf:

LoadModule php4_module "d:/local/php/sapi/php4apache.dll"

Error:
The Apache service named Apache.exe reported the following error:
>>> Cannot load d:/local/php/sapi/php4apache.dll into server: (126) The specified module could not be found: <<<

I mention that the DLL exists in the specified place. I also added the location to the PATH, but with no success.
When i comment out the line in httpd.conf, Apache starts successfuly as a service.

Can you help me please?

Thanks a lot!

mithril
12-19-2001, 04:07 PM
Try removing the quotes from around the php4apache.dll path. If that doesn't work, there should be a directory called /modules in the Apache root folder (ie. d:\local\apache\modules). Copy the php4apache.dll file into that folder and change the LoadModule statement to:

&nbsp;&bnsp;LoadModule php4_module modules/php4apache.dll

Also, make sure you've copied the php4ts.dll file into c:\winnt\system32 and php.ini to c:\winnt. Restart Apache, it should be working now.

For whatever reason, specifying a path outside of the Apache root works on some installations, but not on others. In my experience, calling the mod from the /modules directory always works.

-geoff

mithril
12-19-2001, 04:09 PM
That should be just "LoadModule php4_module modules/php4apache.dll" not "&bnsp;LoadModule php4_module modules/php4apache.dll". My typing got away from me for a second there:)

-geoff

gormozus
12-20-2001, 07:14 AM
Thanks a lot!

I copied 'php4ts.dll' file into c:\windows\system32 and everything seems to be ok.

Anon
04-23-2002, 04:07 AM
gormozus wrote:
-------------------------------
Thanks a lot!

I copied 'php4ts.dll' file into c:\windows\system32 and everything seems to be ok.