Last active
October 17, 2019 03:42
-
-
Save jbelien/04bdbc83a68d809d8c49937c4f807eab to your computer and use it in GitHub Desktop.
PHP: Install PECL extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
👌