Beginning on October 25th, 2016, Persona will no longer be an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 533486 - PHP JSON package install for sites
: PHP JSON package install for sites
12/17/2009 @ 7pm
Product: Graveyard
Classification: Graveyard
Component: Server Operations (show other bugs)
: other
: All All
: -- normal (vote)
: ---
Assigned To: Jeremy Orem [:oremj]
: matthew zeier [:mrz]
Depends on:
Blocks: 529926
  Show dependency treegraph
Reported: 2009-12-08 09:30 PST by Alex Buchanan [:abuchanan]
Modified: 2015-03-12 08:17 PDT (History)
3 users (show)
mzeier: needs‑downtime+
See Also:
QA Whiteboard:
Iteration: ---
Points: ---


Description Alex Buchanan [:abuchanan] 2009-12-08 09:30:53 PST

Please make sure that the PHP functions json_decode() and json_encode() work on and

fox2mike and I recently debugged this problem on www-trunk.stage, and found that the PECL package was installed but not configured properly.

The page using these functions will launch a week from today.

Comment 1 Dave Miller [:justdave] ( 2009-12-08 09:40:54 PST
This will need to be set up in puppet in order to work properly in production (since those servers can get replaced at random and need to be set up correctly automatically when they get loaded from scratch).

The page you linked was last updated 4 days ago and no longer includes any configuration information, only "compiled in by default in PHP 5.2.0 and newer".  I can't find a page history to look at the older versions at all.  Can you share the needed configuration information?
Comment 2 Alex Buchanan [:abuchanan] 2009-12-08 09:53:41 PST
fox2mike can be more specific about what he did to fix the issue.

You can...

a) install the JSON PECL package and configure apache-php to load the .so module.  I think this is in /etc/httpd/conf.d/json.conf?  (the name json.conf could be wrong)  Also, you'll need to restart apache to load the new config.


b) upgrade to php 5.2 (currently we're at 5.1.6 I think)
Comment 3 Jeremy Orem [:oremj] 2009-12-08 15:04:54 PST
I think I'd rather just update php to 5.2, so that it will be in sync with the other clusters.
Comment 4 Jeremy Orem [:oremj] 2009-12-17 09:55:07 PST
Tonight @ 7pm?
Comment 5 Jeremy Orem [:oremj] 2009-12-17 19:36:57 PST
Prod and stage are PHP 5.2.9 (cli) (built: Jun 23 2009 14:49:15)

Note You need to log in before you can comment on or make changes to this bug.