ozzieonline

Well-Known Member
Dec 20, 2012
126
0
16
cPanel Access Level
Root Administrator
Hi guys,

Earliers I installed YAML on my server using these instructions. Today I updated my PHP version and afterwards my YAML didn't work anymore. I followed the instructions again but it doesn't help :(

When I use WHM-> Software-> Module Installers-> PHP Pecl-> manage and try to install YAML it says:

downloading yaml-1.1.1.tgz ...
Starting to download yaml-1.1.1.tgz (37,862 bytes)
..........done: 37,862 bytes
could not extract the package.xml file from "/root/tmp/pear/cache/yaml-1.1.1.tgz"
Download of "pecl/yaml" succeeded, but it is not a valid package archive
Error: cannot download "pecl/yaml"
Download failed
install failed
The yaml.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20121212
Tidying /usr/local/lib/php.ini...
No changes
Tidying /usr/local/cpanel/3rdparty/php/53/etc/php.ini...
No changes

Can someone please help me?
 

ozzieonline

Well-Known Member
Dec 20, 2012
126
0
16
cPanel Access Level
Root Administrator
I found out that the problem occurs when I update to the newest PHP version. When I go back to the old PHP version (5.4) I can successfully install the YAML module again. However, if I update to PHP version 5.5.6 then I get the error message as shown above. Am I doing something wrong, or is this a bug? Can anyone please give me some information?
 
Last edited:

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Hello :)

I was able to successfully install the YAML Pecl module:

Code:
# php -v
PHP 5.5.6 (cli) (built: Dec 10 2013 10:48:03) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
Code:
# pecl list|grep yaml
yaml       1.1.1   stable
The only difference from the instructions you used was that I installed the Pecl module via:

Code:
pecl install YAML
Thank you.