• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Installing JSON on plesk 9.5.3

B

beuzathorb

Guest
Hello,
I'm begginer with plesk and i have a news server with plesk 9.5.3 on Linux 2.6.34.6-xxxx-std-ipv6-64.
On this server, i want to install a script which recquire JSON installed but i found nothing for to learn how to do it.
I thanks JSON was integrate with php 5.2 but no.

Do someone have a solution or a link for to learn how to do it ?

Thanks for answer.
 
JSON is a PHP set of files, you can just simply copy to your webspace and will work.
 
Hello,

what means just a set of files? Can you give me a short Instruction how to do that?
I would like to install Joomla 1.6 which needs json.

BR
 
Hello,

i´ve found a way how it works (Plesk 10 and Suse 10):
- Download the latest rpm from http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/php-json
- Extract the json.so from this rpm and upload it to your webserver
- create a file named json.ini in the following folder: /etc/php5/conf.d/
The file should contain the following:
;php-json extension
extension=json.so
- copy the uploaded file json.so to /usr/lib/php5/extensions/
- restart apache: /etc/init.d/apache2 restart

Now json works fine (sse info.php).

BR
 
Even easier:

Download and use the atomic installer


then install or upgrade PHP

yum update php

json.so is provided by the php-common rpm which should be installed/upgraded by yum.
Then make sure its enabled - if it is already this wont do anything good or bad

perl -pi -e 's/;extension/extension/' /etc/php.d/json.ini

Then make sure its loaded
# php -i phpinfo | grep -i json | grep -v 'Configure'
/etc/php.d/json.ini,
json
json support => enabled
json version => 1.2.1
 
Back
Top