Skip to content

Instantly share code, notes, and snippets.

@jbelien
Last active October 17, 2019 03:42
Show Gist options
  • Save jbelien/04bdbc83a68d809d8c49937c4f807eab to your computer and use it in GitHub Desktop.
Save jbelien/04bdbc83a68d809d8c49937c4f807eab to your computer and use it in GitHub Desktop.
PHP: Install PECL extension
sudo apt-get install php-pear php7.2-dev libyaml-dev
sudo pecl install yaml
# If /etc/php/7.2/mods-available/yaml.ini doesn't exist :
sudo cp /etc/php/7.2/mods-available/xml.ini /etc/php/7.2/mods-available/yaml.ini
sudo sed -i -- 's/xml/yaml/g' /etc/php/7.2/mods-available/yaml.ini
sudo phpenmod yaml
sudo service php7.2-fpm restart
@mauriciogofas
Copy link

👌

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