7
我的CentOS 6.5服務器,當我嘗試使用pecl
我收到以下錯誤,安裝PHP擴展:XML未找到擴展
XML Extension not found
所有單證說,這個擴展默認包含...爲什麼這個錯誤依然存在?
我的CentOS 6.5服務器,當我嘗試使用pecl
我收到以下錯誤,安裝PHP擴展:XML未找到擴展
XML Extension not found
所有單證說,這個擴展默認包含...爲什麼這個錯誤依然存在?
Certain Linux distributions do not have this extension included in the minimum PHP package. It can usually be found in one of the "optional" php-* packages.
For CentOS, you will need to run
yum install php-xml
, which provides this extension.
所以請嘗試使用安裝它:
yum install php-xml
還要檢查你的的php.ini,確保延長不與;
註釋掉應該列爲:
extension=dom.so
爲了絕對確保一個模塊是否是啓用你應該使用phpinfo()
檢查你的php.ini文件,看看XML擴展被禁用「;」 – A23149577