Dave Dyer schrieb:
Versions: Windows 7, Apache 2.2.17, PHP 5.3.5 If I start httpd as a console app, everything works correctly. If I start as a service, the php module fails to load. Messages and actual behavior suggest that the path is being treated strangely. Here are the relevant lines from httpd.conf PHPINIDir"c:/program files (x86)/php/" LoadModule php5_module"c:/program files (x86)/php/php5apache2_2.dll" the error message when started as a service is: httpd.exe: Syntax error on line 690 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php5apache2_2.dll into server: The specified module could not be found. Note that the path in the message is to the apache root, not the path in the config file. And, if I put a copy of php5apache2_2.dll in the place designated by the error message, it changes and the error becomes a complaint about the syntax of the PHPINIDir line. Syntax error on line 689 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Note that the line number doesn't correspond to the location of the directive in the conf file, and that the directive seems to be in the format the message is complaining about. Primary Question: Ok, how do I get mod_php to load.
Maybe Apache can't find any dependencies like php5ts.dll. Does it work if you start Apache from the commandline being in directory C:/Program Files (x86)/Apache Software Foundation/Apache2.2/ ? Hendrik --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx