配置Apache 和 php 出错有关问题

WBOY
Release: 2016-06-13 13:16:36
Original
800 people have browsed it

配置Apache 和 php 出错问题!
我下载了Apache2.2 和 php5.3(我的系统是win7),我下载后都安装好了,但是在配置Apache的httpd.conf文件的时候我只要一加上这两句
LoadModule php5_module "D:/php/php5apache2_2.dll"
PHPIniDir "D:/php"

Apache重启后就报“the requested operation has failed”错误。我已近认真的查看了路劲和文件了都没有错呀,这是为何?求高手指点,谢谢


------解决方案--------------------
Loadmodule php5_module “c:/php5/php5apache2.dll”
PHPinidir “c:/php5/php.ini”
Addtype application/x-httpd-php .php

我记得类似是这样的吧
------解决方案--------------------

探讨

大哥们,救命呀,没人会吗?

------解决方案--------------------
LoadModule php5_module "D:/php/php5apache2_2.dll"
PHPIniDir "D:/php"
你确认路径下有php5apache2_2.dll?
------解决方案--------------------
得加上这句,还有"D:/php/php5apache2_2.dll"是否存在?这样应该没问题了
------解决方案--------------------
PHP code

PHPIniDir "D:/php"
LoadModule php5_module D:/php/php5apache2_2.dll

<ifmodule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps
</ifmodule> <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!