I want to know how to add Yaml parser to php.ini in Ubuntu 12.04
.I had made changes in the php.ini
files like "extension=yaml.so"
but still its not working.So can somebody help me here?
I got that.
I had to write extension=yaml.so
without any quotes in my php.ini
files.
Actually, what you have to do for PHP extension installation is something like the following:
$ sudo apt-get install php-dev php-pear libyaml-dev
$ sudo pecl install yamL
$ sudo sh -c "echo 'extension=yaml.so' >> /etc/php5/mods-available/yaml.ini"
$ sudo php5enmod yaml
Cheers, Karl at Phase3.io
Update
To install yaml by pecl for php7, do:
$ sudo pecl install yaml-2.0.0 && echo "extension=yaml.so" > /usr/local/etc/php/conf.d/ext-yaml.ini
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With