检查一下是不是apache的httpd.conf文件里面关联php.ini的语句有问题 正确版本是 PHPIniDir D:/php/php/php 而不是 PHPIniDir D:/php/php/php/php.ini 记录一下!