httpd.conf with PHP 5

Discussion in 'Apache' started by jdickens10, May 18, 2011.

  1. #1
    I've downloaded Apache's HTTP 2.2.18 Server from http://httpd.apache.org/download.cgi (Win32 Binary without crypto (no mod_ssl) (MSI Installer) and installed it with localhost as the domain and server name. Everything worked fine (tried starting, stopping and restarting), but then I modified httpd.conf with the following lines:

    
    LoadModule php5_module "C:\PHP\php5apache2_2.dll"
    
    Code (markup):
    and

    
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    PHPIniDir "C:\PHP"
    
    Code (markup):
    so it can work with PHP5 installed in C:\PHP (downloaded from http://windows.php.net/download/, PHP 5.2 (5.2.17), VC6 x86 Non Thread Safe). After modifying httpd.conf, I tried to restart Apache but I get a pop-up error message saying "The requested operation has failed!". Restoring httpd.conf to its original configuration, Apache works fine again. The file php5apache2_2.dll in C:\PHP is working correctly and no problems were experienced during PHP installation. Any idea?
     
    jdickens10, May 18, 2011 IP