简体   繁体   中英

Configuring apache httpd.conf file with PHP

As per one of the tutorial on configuring phpMyAdmin I configured the apache/conf/httpd.conf file as follows to establish the connection for PHP in apache.

PHPIniDir "c:\webserver\php"
LoadModule php5_module "c:\webserver\php\php5apache2_4.dll"
AddHandler application/x-httpd-php .php

I am getting an error:

The request operation has failed 

While restarting apache with the above changes. Where am I going wrong? Please can somebody explain how to figure it out.

With httpd-2.2.25 you should be using php5apache2_2.dll not php5apache2_4.dll .

Change the line

LoadModule php5_module "c:\webserver\php\php5apache2_4.dll"

to

LoadModule php5_module "c:/webserver/php/php5apache2_2.dll"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM