Home  >  Article  >  Backend Development  >  Apache

Apache

WBOY
WBOYOriginal
2016-06-23 14:01:03944browse

The requested URL /index.php was not found on this server找不到路径、解析不了
Apache里面的配置LoadModule php5_module "F:/php/php5apache2.dll" 的话就会出错The requested operation has failed!来个高手详细给我说一下、该如何配置该如何更改路径


回复讨论(解决方案)

和你的 apache版本有关,注意下载线程安全的 php 版本
apache 2.0.x、apache 2.1.x
LoadModule php5_module "F:/php/php5apache2.dll"

apache 2.2.x、apache 2.3.x
LoadModule php5_module "F:/php/php5apache2_2.dll"

apache 2.4.x
LoadModule php5_module "F:/php/php5apache2_4.dll"

apache 2.2.x是这个版本但是配置上这个
LoadModule php5_module "F:/php/php5apache2_2.dll"就错了就会显示The requested operation has failed!

确认 F:/php/php5apache2_2.dll 存在

确认php5apache2_2.dll存在的

Statement:
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