简体   繁体   English

实例php7.2 php-xml,在centos下运行的AWS EC2实例上的php-soap

[英]Instance php7.2 php-xml, php-soap on aws ec2 instance running under centos

I really really need help getting moodle up and running on one of my aws ec2 instance, I am facing difficulty installing and enabling php-xml extension on centos. 我真的很需要帮助,以在我的aws ec2实例之一上启动和运行,我面临在centos上安装和启用php-xml扩展的困难。 I tried all the solutions available online, but none worked for me. 我尝试了所有在线可用的解决方案,但没有一个对我有用。

Here is what i tried so far: 这是我到目前为止尝试过的:

On a new aws ec2 instance, done following ; 在新的AWS ec2实例上,执行以下操作;

sudo yum update -y
sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2
sudo yum --enablerepo=remi,remi-php72 install php-xml

//this installs the extension but for some reason the extension is not loading. //这将安装扩展程序,但是由于某种原因,该扩展程序未加载。 I can see /etc/php.d/20-dom.ini, but that don't seems to load here 我可以看到/etc/php.d/20-dom.ini,但是似乎没有在这里加载

http://ec2-52-66-197-132.ap-south-1.compute.amazonaws.com/info.php http://ec2-52-66-197-132.ap-south-1.compute.amazonaws.com/test.php http://ec2-52-66-197-132.ap-south-1.compute.amazonaws.com/info.php http://ec2-52-66-197-132.ap-south-1.compute .amazonaws.com / test.php的

I took this reference from this stackoverflow thread 我从这个stackoverflow 线程获取了这个参考

Also i followed the solution proposed here: https://www.digitalocean.com/community/questions/can-t-install-php-xml-php-mbstring-etc-in-php-7-0 我也遵循这里提出的解决方案: https : //www.digitalocean.com/community/questions/can-t-install-php-xml-php-mbstring-etc-in-php-7-0

curl 'https://setup.ius.io/' -o setup-ius.sh
sudo bash setup-ius.sh

I get the message "not an EL distro" 我收到消息“不是EL发行版”

Will really appreciate any quick help. 会非常感谢您的快速帮助。

Thanks 谢谢

尝试

sudo systemctl restart php-fpm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM