Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

httpd.conf with PHP 5

Status
Not open for further replies.

jdickens10

Programmer
May 18, 2011
1
MX
I've downloaded Apache's HTTP 2.2.18 Server from (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"

and

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
PHPIniDir "C:\PHP"

so it can work with PHP5 installed in C:\PHP (downloaded from 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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top