So, good to see you approach "alternative" repos just the way I do. I keep them disabled, only enabling them specifically when I want to use them, on the command line. Here's what I did:
# rpm -Uvhhttp://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# yum install php-gd --enablerepo=remi,remi-php55
That install, which I needed to resolve a libgd.so dependency, dragged with it all the remi php-5.5.16 and its dependencies which included php-common which now includes the php-json libs as you point out.
# rpm -qa | grep php-comm
There is no change to the /etc/php.d/json.ini file. Just the so file extension declaration. BTW - the warning was temporary, and I no longer get it.
; Enable json extension module
extension = json.so
Interestingly, hiding the json.ini file causes the Syntax error error to change from a JSON mparse error to "Unexpected end of input" in a Yui library call. So I think the json.ini so lib is working just fine. Have put it back.
Here is the current PHP soup I'm working with now:
# rpm -qa | grep php
Only the pear framework stuff isn't from remi, and it seems to be fine.
I get your comments on the bleedin' edge, but I'd have to take PHP to the bleedin' edge to get the revisions needed for 2.6 or 2.7.1+ (or 2.7.1) which is considered "stable". Or is "stable" more akin to Hannibal Lector stable?
I do get a slightly more helpful (!?) stacktrace with the JSON parse error now that debug is on FULL.
BTW: The m.lb.com is a replacement by me to obfuscate the actual URL.
My SSL $CFG variables are:
$CFG->wwwroot = 'http://m.lb.com';
$CFG->httpswwwroot = 'https://m.lb.com';
I didn't find a consistent story on how to implement SSL, so I pretty much just enabled httpd mod_ssl default listener on port 443, and added the above config to config.php in my moodle DocRoot. As so much of the site works, and correctly rewrites to the https URL, I think that looks OK, but open to suggestions of any bits I've missed.
Thanks again ...
PS: I do get a new error in my non-ssl httpd error_log file, which may be related to my $CFG variables I mention above, specifically httpswwwroot ...
[Thu Sep 04 00:19:24.479098 2014] [:error] [pid 31538] [client a.b.c.d:53905] PHP Notice: Most probably incorrect set_page() url argument, it does not match the httpswwwroot!<ul style="text-align: left" data-rel="backtrace"><li>line 1227 of /lib/pagelib.php: call to debugging()</li><li>line
105 of /course/management.php: call to moodle_page->set_url()</li></ul> in /var/www/moodle/lib/weblib.php on line 2866, referer: http://m.lb.com/course/management.php?categoryid=2