This XML module is not provided on a default php (v7) install on Debian GNU/Linux stretch (9.3)
Add it with: sudo apt-get install php-xml
Diese Erweiterung ist standardmäßig aktiviert. Sie kann bei der Kompilierung mit der folgenden Option ausgeschaltet werden: --disable-simplexml
Zu beachten ist: Vor PHP 5.1.2 musste diese Erweiterung über --enable-simplexml aktiviert werden.
This XML module is not provided on a default php (v7) install on Debian GNU/Linux stretch (9.3)
Add it with: sudo apt-get install php-xml
Just for the record I set up a new machine and only installed the things I needed. we then added an upload to s3 using the AWS S3 sdk and when it was put onto the staging server the code broke this was because we hadn't installed the library.
Posting this note as it took me several days to figure this out as the php error logs were not written to the virtual host location but rather to log for the php-fpm extension.
To get the error message I had to access its error log
> tail -f /var/log/php-fpm/www-error.log
To install on CentOS and Redhat, run: sudo yum -y install php-xml
For Linux Ubuntu using PHP 7:
sudo apt-get install php7.0-xml
Installing simpleXml using composer:
"composer require ext-simplexml"
The extension is enabled by default in most distros. You can check the list of php modules using:
"php -m"