I am using ubuntu 14.04 + nginx + php7.2
I suffered "call to undefined function simplexml_load_string()" due to xml module missing in php 7.2
When I using
apt-cache search php7, only shows the following
all the module is without xml related.
I also try
add-apt-repository ppa:ondrej/php and
but still get
E: Couldn't find any package by regex 'php7.2-xml'
please help, thanks
According to packages.ubuntu.com for 16.04 (Xenial),
php-xml is in the
universe repository. So make sure that
universe is enabled in your package manager & update the cache. You may want to consider upgrading to 16.04 as 14.04 is no longer supported.
Edit: Software sources manager in Ubuntu 19.04. May be similar in 14.04.
Edit: Note that
php7.0-xml is in the security repo. So make sure that security updates are enabled as well.