note 43302 deleted from configuration.changes by tomsommer
| From: | tomsommer@php.net | Date: | Sun, 28 Nov 2004 01:27:08 +0000 |
| Subject: | note 43302 deleted from configuration.changes by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-81109@lists.php.net to get a copy of this message | ||
Note Submitter: phpdocs at varrqnuht dot net
----
If PHP is working for you but an 'apachectl configtest' gives you errors such as:
Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included
in the server configuration
This may be due to that way the PHP module is loaded in your httpd.conf config file. I noticed this
problem on an Apache 1.3.x server which was running mod_ssl - the LoadModule and AddModule
directives for PHP had been inserted inside an <IfDefine SSL> block, so PHP worked when the
server was started in ssl mode (which was always), but the configtest failed because the SSL flag
wasn't set.
The fix for this is to make sure that the LoadModule and AddModule lines for PHP are outside that
block - I just moved mine in front of it and now everything is fine.