Bug #16783 Updated: Cant run apache2 with PHP module
| From: | luna at enst dot fr | Date: | Fri, 26 Apr 2002 20:44:11 +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-6170@lists.php.net to get a copy of this message | ||
ID: 16783
Updated by: luna@enst.fr
Reported By: superzouz@hotmail.com
Status: Bogus
Bug Type: Apache2 related
Operating System: Windows XP Professional 5.1.2600
PHP Version: 4.2.0
New Comment:
If it can help, I tried to make an installation doc at:
http://137.194.8.83/ATSEC/PHP4Apache2Windows.html
Previous Comments:
------------------------------------------------------------------------
[2002-04-23 22:03:43] superzouz@hotmail.com
Sorry Sorry!
Just found other similar bug reports!
Sorry for wasting your time.
PHP now works with apache2filter.dll
but I had to comment "AddModule mod_php4.c" because Apache complained:
"Invalid command 'AddModule', perhaps mis-spelled or defined by a
module not included in the server configuration."
------------------------------------------------------------------------
[2002-04-23 21:57:48] sniper@php.net
You're using wrong dll. it's called 'apache2filter.dll' and it can be
found in the experimental folder in the zip.
------------------------------------------------------------------------
[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