note 81318 rejected from install.windows.apache2 by danbrown
| From: | danbrown@php.net | Date: | Tue, 08 Sep 2009 22:22:05 +0000 |
| Subject: | note 81318 rejected from install.windows.apache2 by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160318@lists.php.net to get a copy of this message | ||
Note Submitter: henke at henke37 dot cjb dot net
----
Please completely ignore the page contents, it's stale garbage and will just lead to trouble.
Here is how to do it the right way:
Do not copy any php files anywhere
Do not edit the system path
And absolutely do not use the provided cgi directives.
Here is the proper apache directives to load php, preferbly saved as php.conf and included from your
main config.
#load the php main library to avoid dll hell
Loadfile "C:\pathtophp\php5ts.dll"
#load the sapi so that apache can use php
LoadModule php5_module "C:\pathtophp\php5apache2_2.dll"
#set the php.ini location so that you don't have to waste time guessing where it is
PHPIniDir "C:\pathtophp"
#Hook the php file extensions, notice that Addtype is NOT USED, since that's just stupid
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps