Gaurav Mehra
Gaurav Mehra

Reputation: 471

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. 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 ;

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

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

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

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

I get the message "not an EL distro"

Will really appreciate any quick help.

Thanks

Upvotes: 1

Views: 4313

Answers (1)

Manzolo
Manzolo

Reputation: 1959

try

sudo systemctl restart php-fpm

Upvotes: 7

Related Questions