I have got a new install of Apache set up but cannot get it to run with the PHP module. I have added these lines into httpd.conf as instructed in php.ini.:
However Apache will not start (it gives me a detail-less oh-crap message when I try to start the service). If I comment out the LoadModule line it works. The DLL location is valid and it is a freshly downloaded PHP 5.1.4 binary.
httpd: Syntax error on line 32 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/php5/php5apache2.dll into server: The specified module could not be found.
Yet the path is perfectly fine.
I tried various other things like casing and changing the slashes, to no avail.
I was able to do phpinfo() using the PHP CLI, so it doesn't seem to be a PHP config issue...
Edit: Also tried c:\php like default, same issue, so for some reason it is not resolving the path, or maybe it is and the library is missing a dependency, although I would have thought the error would be different in that case.
Last edited by penagate; Aug 18th, 2006 at 08:15 AM.
The file does indeed exist, but, its the php module which is complaining about not being able to find the file related to mysql.
This file is libmysql.dll and you should be able to find somewhere under the root install directory for mysql. You need to ensure the file containing this dll is in the
system PATH environment variable or copied to a directory in the system PATH.
Copying it to C:\windows or C:\winnt should suffice.