- Install json – This was actually trickier than expected. I assumed I would be able to install this via
pear. Apparently, a PEAR Services_JSON package was developed, but it has never been accepted into the official repository. The trick instead is to use the PECL json package. This was as easy as running
pecl install jsonand watching the compiler do its thing. When it’s done you should have a
json.sofile in your PHP modules directory. (Mine is
/etc/php.d/– This file is pretty simple. Simply add
extension=json.soto this file and that will enable the extension.
- Restart Apache – Not much more to add here. Without the restart, the extension won’t be loaded.