Enable Json support in cpanel server

pecl install json

You may face issues while executing the above command if /tmp and  /var mounted in nonexec. So remount them using the following commands.

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

Note down the path of json.so and check with php -m  or with phpinfo() page. Remember to restart Apache.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s