[英]Your PHP installation does not support XML in Centos6.7
I have installed Centos6.7 within PHP5.6.16 and I've configured virtual Hosting (Vhosts) to create another website.However I used CI2.2.0 我已经在PHP5.6.16中安装了Centos6.7,并配置了虚拟主机(Vhosts)来创建另一个网站。但是我使用的是CI2.2.0
But finally I got an errors as below info 但最后我得到了如下信息的错误
An Error Was Encountered 遇到错误
Your PHP installation does not support XML 您的PHP安装不支持XML
So what is PHP Extension to solve this problem? 那么什么是PHP扩展来解决此问题?
I have install as bellow packages 我已经安装了波纹管套件
Install 1 Package(s)
Upgrade 8 Package(s)
Total download size: 9.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): php-5.6.16-1.el6.remi.x86_64.rpm | 2.7 MB 00:00
(2/9): php-cli-5.6.16-1.el6.remi.x86_64.rpm | 3.9 MB 00:00
(3/9): php-common-5.6.16-1.el6.remi.x86_64.rpm | 1.1 MB 00:00
(4/9): php-gd-5.6.16-1.el6.remi.x86_64.rpm | 75 kB 00:00
(5/9): php-mbstring-5.6.16-1.el6.remi.x86_64.rpm | 965 kB 00:00
(6/9): php-mcrypt-5.6.16-1.el6.remi.x86_64.rpm | 46 kB 00:00
(7/9): php-mysqlnd-5.6.16-1.el6.remi.x86_64.rpm | 273 kB 00:00
(8/9): php-pdo-5.6.16-1.el6.remi.x86_64.rpm | 116 kB 00:00
(9/9): php-xml-5.6.16-1.el6.remi.x86_64.rpm | 213 kB 00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 3.7 MB/s | 9.3 MB 00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
WARNING : These php-* RPMs are not official Fedora / Red Hat build and
overrides the official ones. Don't file bugs on Fedora Project nor Red Hat.
Use dedicated forum at http://forum.remirepo.net/
Updating : php-common-5.6.16-1.el6.remi.x86_64 1/17
Updating : php-cli-5.6.16-1.el6.remi.x86_64 2/17
Updating : php-pdo-5.6.16-1.el6.remi.x86_64 3/17
Updating : php-mysqlnd-5.6.16-1.el6.remi.x86_64 4/17
Updating : php-5.6.16-1.el6.remi.x86_64 5/17
Updating : php-gd-5.6.16-1.el6.remi.x86_64 6/17
Updating : php-mbstring-5.6.16-1.el6.remi.x86_64 7/17
Updating : php-mcrypt-5.6.16-1.el6.remi.x86_64 8/17
Installing : php-xml-5.6.16-1.el6.remi.x86_64 9/17
Cleanup : php-5.6.13-1.el6.remi.x86_64 10/17
Cleanup : php-cli-5.6.13-1.el6.remi.x86_64 11/17
Cleanup : php-mcrypt-5.6.13-1.el6.remi.x86_64 12/17
Cleanup : php-mysqlnd-5.6.13-1.el6.remi.x86_64 13/17
Cleanup : php-pdo-5.6.13-1.el6.remi.x86_64 14/17
Cleanup : php-mbstring-5.6.13-1.el6.remi.x86_64 15/17
Cleanup : php-gd-5.6.13-1.el6.remi.x86_64 16/17
Cleanup : php-common-5.6.13-1.el6.remi.x86_64 17/17
Verifying : php-gd-5.6.16-1.el6.remi.x86_64 1/17
Verifying : php-mbstring-5.6.16-1.el6.remi.x86_64 2/17
Verifying : php-mysqlnd-5.6.16-1.el6.remi.x86_64 3/17
Verifying : php-cli-5.6.16-1.el6.remi.x86_64 4/17
Verifying : php-mcrypt-5.6.16-1.el6.remi.x86_64 5/17
Verifying : php-xml-5.6.16-1.el6.remi.x86_64 6/17
Verifying : php-pdo-5.6.16-1.el6.remi.x86_64 7/17
Verifying : php-common-5.6.16-1.el6.remi.x86_64 8/17
Verifying : php-5.6.16-1.el6.remi.x86_64 9/17
Verifying : php-cli-5.6.13-1.el6.remi.x86_64 10/17
Verifying : php-mcrypt-5.6.13-1.el6.remi.x86_64 11/17
Verifying : php-mbstring-5.6.13-1.el6.remi.x86_64 12/17
Verifying : php-common-5.6.13-1.el6.remi.x86_64 13/17
Verifying : php-pdo-5.6.13-1.el6.remi.x86_64 14/17
Verifying : php-5.6.13-1.el6.remi.x86_64 15/17
Verifying : php-gd-5.6.13-1.el6.remi.x86_64 16/17
Verifying : php-mysqlnd-5.6.13-1.el6.remi.x86_64 17/17
Installed:
php-xml.x86_64 0:5.6.16-1.el6.remi
Dependency Updated:
php.x86_64 0:5.6.16-1.el6.remi php-cli.x86_64 0:5.6.16-1.el6.remi php-common.x86_64 0:5.6.16-1.el6.remi php-gd.x86_64 0:5.6.16-1.el6.remi php-mbstring.x86_64 0:5.6.16-1.el6.remi
php-mcrypt.x86_64 0:5.6.16-1.el6.remi php-mysqlnd.x86_64 0:5.6.16-1.el6.remi php-pdo.x86_64 0:5.6.16-1.el6.remi
Complete!
安装php-xml
软件包。
sudo yum install php-xml
for php 5.6 use 对于php 5.6使用
sudo yum install php5.6-xml in centos
and for ubuntu 对于ubuntu
sudo apt-get install php5.6-xml
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.