phpMyAdmin missing php-xml

I have an instance on AWS (Amazon Linux 2). I installed lamp on the server and access the phpMyAdmin.

And I get this error:

Composer detected issues in your platform: Your Composer dependencies require the following PHP extensions to be installed: xml

I tried to install it (php-xml) using sudo yum install php-xml, I get this error:

Error downloading packages:

php-xml-7.2.34-1.amzn2.x86_64: [Errno 256] No more mirrors to try.

libxslt-1.1.28-6.amzn2.x86_64: [Errno 256] No more mirrors to try.

I am new to this, if you need more debugging information, please tell me. Thanks.


I found that I accidentally delete some files in /etc/pki/tls/certs/. I put them back and it's working now.