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 pctony: http://wiki.apache.org/httpd/PHPOnWindows The comment on the change is: fixed up, corrected use of the / and reworded ------------------------------------------------------------------------------ (!) Page still under development! please read it as such. (!) + (!) This article has still not been finished, please use with caution! (!) + + This is how you could configure Apache 2.2 with {{{PHP}}} on {{{Windows}}}. - This is how to properly hook php to Apache 2.2. While it is not strictly necessary, it does not hurt to save it in a separate configuration file. + While it is not strictly necessary, it does not hurt to save it in a separate configuration file. + {{{ - #preload the php interpreter dll to avoid dll hell + #Preload the PHP interpreter dll - LoadFile "C:\server\php5.2\php5ts.dll" + LoadFile "C:/server/php5.2/php5ts.dll" - #load the sapi module for apache + #Load the sapi module for Apache - LoadModule php5_module "C:\server\php5.2\php5apache2_2.dll" + LoadModule php5_module "C:/server/php5.2/php5apache2_2.dll" - #let's not guess where php.ini is + #Specify the directory that the php.ini is stored in PHPIniDir "C:/server/php5.2" - #hook the file extensions + #Configure Apache to to use the handlers specified for each extension AddHandler application/x-httpd-php .php AddHandler application/x-httpd-php-source .phps - #hook index.php as a directorylist filename - #it will not remove any other names that has been set, like index.html + #Set index.php to be served as the default index file + #it will not remove any pre-existing DirecotoryIndex configurations that have been set DirectoryIndex index.php }}}
