阿里云的centos7.5,通过清华镜像安装的:
安装remi的yum源
yum -y install https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-7.rpm安装PHP7.0
yum -y install php70-php php70-php-devel php70-php-fpm php70-php-ldap php70-php-mysqlnd php70-php-mbstring php70-php-pdo php70-php-gd安装好之后,没有Simplexml 扩展,网上资料都说这个是内置的,无需额外安装;有人说安装下:php-xml, php-simplexml
yum install --enablerepo=remi --enablerepo=remi-php70 php-xml
也安装成功了,重启apache,但是还是不行现在手头有个TP3.2的项目,由windows系统迁移到centos,结果没有Simplexml 扩展,直接首页就跑不起来,提示:Call to undefined function Think\simplexml_load_string()