Skip to content

Instantly share code, notes, and snippets.

@ambercouch
Last active September 17, 2018 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ambercouch/718518cb1de6918d8759740c5628fb57 to your computer and use it in GitHub Desktop.
Save ambercouch/718518cb1de6918d8759740c5628fb57 to your computer and use it in GitHub Desktop.
Add XML support to your server to fix the issues with Vagrant/Scotchbox and the WordPress SVG Support plugin
# ssh to your vagrant server (scotchbox)
vagrant ssh
# swich to super user account (administrator / root)
sudo su
# update apt-get
apt-get update
# install the latest version of xml support for php7
apt-get install php7.0-xml
# install the latest version of xml support for php7
apt-get install php7.1-xml
# install the latest version of xml support for php7
apt-get install php7.2-xml
# install php-xml
apt-get install php-xml
# install all the upgraded packages
apt-get upgrade
# restart apache
service apache2 restart
# exit super user
exit
# exit vagrant ssh
exit
# restart vagrant (sotchbox)
vagrant reload
@ambercouch
Copy link
Author

Added and now currently working for WPML plugin

# install php-xml
apt-get install php-xml
# install all the upgraded packages
apt-get upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment