Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change 
notification.

The following page has been changed by henke37:
http://wiki.apache.org/httpd/PHP_on_Windows

New page:
This is how to properly hook php to Apache 2.2. Don't bother with the config 
that is sent with php, it is crap.
While it is not strictly needed, it does not hurt to save it in a separate 
configuration file.
{{{
#preload the php interpreter dll to avoid dll hell
LoadFile "C:\server\php5.2\php5ts.dll"

#load the sapi module for apache
LoadModule php5_module "C:\server\php5.2\php5apache2_2.dll"

#let's not guess where the file is
PHPIniDir "C:/server/php5.2"

#hook the extensions
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps

#hook index.php as a dirlist filename
#it will not remove any other names that has been set, like index.html
DirectoryIndex index.php
}}}

If you are too stupid to update the filepaths, you shouldn't be setting up your 
own server to begin with.

Reply via email to