[英]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. 按照配置phpMyAdmin的教程之一,我如下配置apache / conf / httpd.conf文件,以在apache中建立PHP的连接。
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. 在通过上述更改重启apache的同时。 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
. 使用httpd-2.2.25时,您应该使用
php5apache2_2.dll
而不是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"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.