JSON on RHEL & PHP 5.1.6

Stuck with PHP 5.1.6 on RHEL or even CentOS (and a sysadmin who insists on using packages)? Need JSON? I did. The solution is easy:

yum install php-devel
pecl install json

The pecl install failed when it hit an 8MB memory limit, and I was clueless about how to fix it until I learned that the pecl installer ignores the php.ini. Turns out the best solution is to use the pear installer (which does follow php.ini settings):

pear install pecl/json

Related:

1 Comment(s)

  1. Comment by Paulgloryshine on June 6, 2008 4:02 am

    I paul hereby apply to ur company i am a native of nigeria.i was born in_ 1980 in ondo

Comments RSS TrackBack Identifier URI

Leave a comment

 

User contributed tags for this post:

centos php json (31) - php 5.1.6 json (20) - php json centos (18) - json php 5.1.6 (13) - php 5.1 json (12) - centos json (11) - php json rpm (11) - yum json (11) - json php 5.1 (10) - json centos (10) - yum php json (9) - php JSON (9) - php 5.1.6 (8) - php-json rpm (7) - install json (7) - install (6) - php-json centos (6) - centos php json rpm (6) - RHEL php (6) - yum install json (6) - PHP json yum (6) - JSON rpm (6) - php enable json (6) - php json 5.1.6 (6) - json redhat (5) - install json redhat (5) - pear json (5) - enable json php (5) - php-json-5.1.6 rpm (5) - yum pecl (4) - php-json centos rpm (4) - centos 5 json (4) - php json centos 5 (4) - php-json-5.1.6 (4) - pear install json (4) - json rhel (4) - rhel pecl (4) - php-json rhel5 (4) - json support PHP 5.1 (4) - json php 5.1.2 (4) - php 5.1.6 install json (4) - pecl json centos (3) - centos php-json (3) - centos 5 php json (3) - rhel5 php-json (3) - centos 5 json php (3) - RHEL 5 pecl (3) - yum install php json redhat (3) - json install (3) - json centos 5 (3) - redhat php 5.1.6 json (3) - php centos json (3) - redhat php json (3) - php 5.1 json pecl (3) - xxlsex (3) - php json rhel (3) - yum for redhat 5.1 (3) - rhel 5 json (3) - 5.1.6 json (3) - php json rpm 5.1.6 (3) - installing json php 5.1 (2) - php json red hat (2) - json php pecl redhat (2) - centos install pecl json (2) - install php json on redhat (2) - yum json CentOS (2) - rhel 5 php json (2) - rhel 5 php version (2) - red hat json (2) - php-json for 5.1 (2) - php-5.1.6 (2) - php and json (2) - php centos 5 json (2) - php 5.1.2 json pear (2) - php pecl json rpm (2) - php rpm 5.1.6 (2) - how to install PECL RHEL5 (2) - pear json rhel5 (2) - install php json (2) - pear install pecl json (2) - php enabling json (2) - php JSON Redhat (2) - php 5.1 (2) - php rhel4 (2) - yum json php (2) - install json centos (2) - redhat json (2) - centos json php (2) - json php.ini (2) - php json centos rpm (2) - redhat install json (2) - how to use json in php 5.1.4 (2) - PHP 5.1.6 JSON rpm (2) - php 5.1 install json (2) - JSON.php (2) - yum php-json (2) - php json centos 5.1 (2) - yum php 5.1 (2) - how to install JSON (2) - centos pecl json (2) - json centos php yum (2) - yum install php-json centos (2) - install pecl rhel (2) - XXlsex child (2) - json install rhel5 (2) - redhat 5 php json (2) - centos 5.1 php json (2) - CentOS4 php json (2) - centos php json install (2) - json php redhat (2) - php json redhat install (2) - install json php on redhat (2) - installing pecl json (2) - centos 4 php-json (2) - yum install php json (2) - json rhel 5 (2) - php-json rpm CentOS 5 (2) - php-json.rpm (2) - rhel5 php json (2) - installare json php 5.1 (2) - how to enable json in php (2) - installing json in php 5.1.6 (1) - php json redhat enterprise 5 (1) - compile php mysql json centos 5 (1) - rpm json pecl (1) - install php rpm rhel5 (1) - php-json 5.1 rpm (1) - php json.rpm (1) - rhel4 pecl install (1) - how to install json in php 5.1 (1) - php 5 rpm rhel 3 (1) - yum json php package (1) - enable json with php (1) - php-devel rhel5 (1) - yum --enablerepo php (1) - php add json support centos 5 (1) - php 5.1 centos json (1) - RHEL 4.0 in php (1) - PHP 5.1.6 rpm RHEL5.1 (1) - how enable json in php (1) - JSON PECL rpm (1) - enabling php RedHat AS 5 (1) - add json support to PHP 5.1 (1) - php-json install pear pecl (1) - install dom php on rhel5 (1) - php 5.1 with JSON (1) - redha enterprise php json package (1) - upgrade php 5.1.4 rhel (1) - recompile php on rhel5 (1) - yum install php redhat 4 (1) -