note 31007 deleted from faq.installation by sniper
| From: | sniper@php.net | Date: | Thu, 06 Nov 2003 20:11:59 +0000 |
| Subject: | note 31007 deleted from faq.installation by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-60020@lists.php.net to get a copy of this message | ||
Note Submitter: Jason Klein / Datility Networks
----
Windows 2000 + Apache 1.3.27 + PHP 4.3.1 win32
I was receiving the console output below after adding php specific configuration lines to the apache
httpd.conf file.
c:\devel\httpd\Apache\>apache -w -n "Apache" -k restart
[warn] module mod_php4.c is already added, skipping
The Apache service is restarting
The Apache service has restarted
[error] Cannot remove module mod_php4.c: not found in module list
The following lines had been added immediately after the last existing "LoadModule" line
in the apache httpd.conf file.
LoadModule php4_module /devel/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
AddModule mod_php4.c
To resolve issue, I moved the php "AddModule" line immediately after the last existing
"AddModule" line. It seems that this line must be added after the
"ClearModuleList" line.
I also noticed that if I add the "LoadModule" and "AddType" lines to the VERY
END of the httpd.conf file, the "AddModule" line is not necessary at all.
Our developer seemed to have no problems after that. Hopes this helps someone else!