Home  >  Article  >  Backend Development  >  PHP环境配备出错了。

PHP环境配备出错了。

WBOY
WBOYOriginal
2016-06-13 10:57:22885browse

PHP环境配置出错了。。。
为什么我在httpd.conf里面加了以下几个配置,再然后重启apache就报错了,想问一下大侠们可能那里出错了?
LoadModule php5_module C:/phpEnvir/php/php5apache2_2.dll
PHPIniDir "C:/phpEnvir/php"
AddType application/x-httpd-php .php .phtml

------解决方案--------------------
C:/phpEnvir/php/php5apache2_2.dll 不存在
------解决方案--------------------
几点
1.你的apache是否2.2,不是的话就不是这个文件,例如2.4需要...2_4.dll
2.php和apache的ts/nts保持一致
3.vc9编译的php和apache官版兼容有问题,需要另一个非官方的apache版本

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