出现这个问题是因为没有安装php的扩展开发导致的,建议将php以及apache的开发都安装上,使用如下的命令。 yum install php-devel php-pear httpd-devel 转载于:https://blog.51cto.com/anychen/833410