sábado, 14 de abril de 2018

php xml

https://stackoverflow.com/questions/35223926/class-simplexmlelement-not-found-on-puphpet-php-5-6


The problem was that I was using Cent OS and in this Linux Distribution, the php-libxml package does not come as default.

I ended up generating a new machine through PuPHPet GUI and added to the System Package the following packages to be installed:

php-xml, php-simplexml
Problem solved.

For those using PHP 7 and Ubuntu, @MPS solved it by running apt-get install php7.0-xml and service apache2 restart.


Or  running apt-get install php7.1-xml 
On Centos, we need to install the XML php package. You can try yum install php56w-xml or yum install php70w-xml if you're using php70w repository for PHP 7.0

No hay comentarios:

Publicar un comentario