'How to install php yaml on CentOs?
On the start I was getting this error:
Call to undefined function yaml_parse_file()
I have tried everything what I have found over google:
yum install libyaml
yum install yaml
yum install perl-yaml
and etc.
Now I'm getting:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/extensions/no-debug-non-zts-20100525/yaml.so' - /usr/lib64/extensions/no-debug-non-zts-20100525/yaml.so: cannot open shared object file: No such file or directory in Unknown on line 0
Exception: Extension yaml does not exist
Already added
extension=yaml.so
in php.ini file
Details:
CentOS release 6.7 (Final)
PHP 5.4.45
SS after I ran upper install commands:
What is the proper way to install yaml support in php?
Solution 1:[1]
php-yaml from epel repository:
php-pecl-yaml-1.1.1-5.el6.x86_64 : Support for YAML 1.1 serialization
using the LibYAML library
Repo : epel
Matched from:
Other: php-yaml
For repo: sudo yum install epel-release
For package: sudo yum install php-yaml
And remember to restart httpd
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |