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"
PHPIniDir "C:/Program Files/PHP"
刪除掉即可。