Install JSON for PHP 5
| SHARE: | Share |
|
I wanted to install a Facebook application on a new VPS server but I got this error message:
Fatal error: Uncaught exception ‘Exception’ with message ‘Facebook needs the JSON PHP extension
Basically, what we need is to install the JSON PHP extension.
Here is how to do that.
Step one: run this command: pecl install json
When it’s done you should have a json.so file in your PHP modules directory. This directory should be /usr/lib/php/modules/
Step two: Add the json.ini file to /etc/php.d/ – to enable the extension add extension=json.so to this file
Step three: Restart Apache
Keep in mind that without restarting, the extension won’t be loaded.
That’s all folks!
Was this post useful? Buy me a beer.
Incoming search terms:
- Facebook needs the JSON PHP extension (72)
- acquired inurl:/user php (12)
- how to install json php extension (10)
- powered by SMF 2 0 internet explorer 5 (9)
- estates inurl:/user php (8)
- /wp-signup php excepted (8)
- powered by SMF 2 0 life cycle of a whale (8)
- powered by SMF heart support group (7)
- Fatal error: Uncaught exception Exception with message Facebook needs the JSON PHP extension (6)
- inurl:/register php? request email back outlook (6)
Filed under: Web development · Tags: Install JSON for PHP, Install JSON for PHP 5, JSON on PHP 5