Skip to content

Instantly share code, notes, and snippets.

@mauriciogofas
Forked from jbelien/install-pecl-yaml.sh
Created October 9, 2019 19:54
Show Gist options
  • Save mauriciogofas/053a075d816c5925b3bae06f1b8f0477 to your computer and use it in GitHub Desktop.
Save mauriciogofas/053a075d816c5925b3bae06f1b8f0477 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment