Re: Configuration Directive Under Apache
| From: | Gabor Hojtsy | Date: | Sun, 21 Jul 2002 15:11:21 +0000 |
| Subject: | Re: Configuration Directive Under Apache | ||
| References: | 1 | Groups: | php.doc.chm |
| Request: | Send a blank email to php-doc-chm+get-298@lists.php.net to get a copy of this message | ||
> I am using Apache 1.3.24 with PHP 4.2.1.
>
> Using the new CHM version of the manual to configure PHP on a Windows 2000
> system with Apache 1.3.x, the "Installing PHP on Windows with Apache
1.3.x"
> section of the manual instructs you to add the following two lines to the
> httpd.conf file if you're installing PHP as a module:
>
> LoadModule php4_module c:/php/sapi/php4apache.dll
>
> AddType application/x-httpd-php .php .phtml
>
> While the above instructions are correct, you also have to add the
following
> line:
>
> AddModule mod_php4.c
>
> If you don't add this last line, the configuration testing facility
shipped
> with Apache informs you that it can't find the directive.
This is there especially on that page in a note for a very long time now.
| Note: You may find after using the windows installer for Apache that you
| need to define the AddModule directive for mod_php4.c in the configuration
| file (httpd.conf). This is done by adding AddModule mod_php4.c to the
AddModule
| list, near the beginning of the configuration file. This is especially
| important if the ClearModuleList directive is defined. Failure to do this
| may mean PHP will not be registered as an Apache module.
Just read the manual ;)
Goba