apache 下配置php 如果服务无法启用,可通过windows的事件查看器来查找真正的原因,如果出现以下的错误提示
The Apache service named reported the following error:
>>> Only first PHPINIDir directive honored per configuration tree - subsequent ones ignored
这个说明 php的下面配置已经有了,意思是加重复了。
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
删除掉即可。