Bug #16783 Updated: Cant run apache2 with PHP module
| From: | sniper@php.net | Date: | Wed, 24 Apr 2002 01:57:48 +0000 |
| Subject: | Bug #16783 Updated: Cant run apache2 with PHP module | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5771@lists.php.net to get a copy of this message | ||
ID: 16783
Updated by: sniper@php.net
Reported By: superzouz@hotmail.com
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: Windows XP Professional 5.1.2600
PHP Version: 4.2.0
New Comment:
You're using wrong dll. it's called 'apache2filter.dll' and it can be
found in the experimental folder in the zip.
Previous Comments:
------------------------------------------------------------------------
[2002-04-23 21:42:47] superzouz@hotmail.com
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 this bug report at http://bugs.php.net/?id=16783&edit=1