-
-
Save mauriciogofas/053a075d816c5925b3bae06f1b8f0477 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