PHP 5.3.8, JSON & CentOS 6 PHP 5.3.8, JSON & CentOS 6 json json

PHP 5.3.8, JSON & CentOS 6


Thought I'd follow up with the solution. The PECL installation seemed to conflict with PHP 5.3.8 so after a bit of research and some advice I toyed with the idea of:

# yum remove php# yum install php

However, after further advice instead went with:

# yumdownloader php-common# rpm -Uvh --force php-common*.rpm# service httpd reload# rm php-common*.rpm

This did the trick and JSON is now working again. Hope this helps someone else.

Thanks


download json-1.2.1.tgz FROM PECL

enter code heretar zxvf json-1.2.1.tgzcd json-1.2.1vi JSON_parser.c

Find ZVAL_DELREF replace to Z_DELREF_P(You can Find in 3 place)And Save file

Then

phpize./configuremakemake install

You can get your json.sodon't forget add to php.ini


  1. Login to SSH
  2. Make tmp and var/tmp exec

    mount -v -o remount,exec /tmp
    mount -v -o remount,exec /var/tmp

  3. No go ahead and install JSON

    pecl install json

  4. And finally, make tmp and var/tmp noexec again

    mount -v -o remount,noexec /tmp
    mount -v -o remount,noexec /var/tmp