For a recent project I needed the PHP extension Imagick. After running apt-get update and such commands on my puphpetvagrant installation I rebooted the virtual machine and my sites started getting errors regarding the utf8_decode() and simplexml_load_file() functions not existing. Even after destroying the instance and provisioning it from scratch it remained broken. Panic!
After some research it appeared I was missing some normally common XML modules in the PHP installation. Even though the PHP docs and any other resources claim SimpleXML is installed and active by default, it was not after my latest updates. Note that the server/php combo in question was Ubuntu 14.04 32bit + PHP 5.6.
The result of a bunch of research, headaches and guessing:
1. SSH into your machine
vagrant ssh
2. Check if the module SimpleXML is installed & active:
Thank you for this post!
With it I managed to fix the same problem with missing SimpleXML.
I also tried adding SimpleXML module to config.yaml file and it is working.
…
php:
modules:
php:
– SimpleXML
Thanks again,
Zoran
Berend
@Zoran Awesome, thanks. Then it will also work when provisioning the machine from scratch. I couldn’t find it in the puphpet config wizard so wasn’t sure how to do it.
Anonymous
If you’re reading this, you’re all set, parrend!
Anonymous
Muito obrigado! Eu estava precisando muito dessa solução.
Thank you for this post!
With it I managed to fix the same problem with missing SimpleXML.
I also tried adding SimpleXML module to config.yaml file and it is working.
…
php:
modules:
php:
– SimpleXML
Thanks again,
Zoran
@Zoran Awesome, thanks. Then it will also work when provisioning the machine from scratch. I couldn’t find it in the puphpet config wizard so wasn’t sure how to do it.
If you’re reading this, you’re all set, parrend!
Muito obrigado! Eu estava precisando muito dessa solução.