From: [EMAIL PROTECTED] Operating system: Windows XP Professional 5.1.2600 PHP version: 4.2.0 PHP Bug Type: Apache2 related Bug description: Cant run apache2 with PHP module
The following problem is most probably caused by Apache, not PHP, but this report may be useful to you. _______________Summary: After adding the necessary lines in httpd.conf to register the PHP module, Apache service cannot be started. The Windows event viewer reports: "The Apache service named reported the following error:>>> Cannot load C:/PHPmod/sapi/php4apache.dll into server: The specified module could not be found." But the dll is right where it should be, and with appropriate permissions set! _______________Details: Apache version: 2.0.35 As instructed in install.txt on your distribution, I added the following lines to the Modules section in httpd.conf: #----------PHP------------- LoadModule php4_module c:/PHPmod/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php #-------------------------- I am using the "c:\PHPmod" directory because c:\php contains the CGI distribution of PHP4.1.1 wich I use with a Xitami Webserver and for processing scripts. I tried to move the dll around a bit (like in the apache mods directory) and experimented with the path (trying windows slashes, omitting "c:" etc). Later on, I read the PHP install directions and noticed I hadn't copied php.ini in the windows directory. So I copied php.ini-distr , renamed it and edited the "extension_dir" setting as instructed. But that didn't fix the problem. Thank you -- Edit bug report at http://bugs.php.net/?id=16783&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16783&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16783&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16783&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16783&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16783&r=support Expected behavior: http://bugs.php.net/fix.php?id=16783&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16783&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16783&r=submittedtwice