undefined symbol: php_json_encode in Unknown on line 0

undefined symbol: php_json_encode in Unknown on line 0

Am fighting to install my application on Amazon EC2.. I installed the mongo and php mongo driver then restarted apache to get the above error message.
The problem is loading precedence. Mongo, which is dependent on json.so, is being loaded ahead of the json.so hence crying over ‘Where Is My JSON.so ehiehiehi’
The fix would be to make sure we are loading json first before the mongo – actually this would be hte problem on while loading memcache as well..
On php.ini –
Right above the extension=mongo.so, add extension=json.so
Usually json.so will be loaded through its own ini file json.ini
On Redhat Linux it would be inside


So, go to the json.ini and comment the extension=json.so line
restart httpd/apache and

Spring Data error: getOutputStream() has already been called for this response

Post to Facebook From app – Using PHP

connect to sftp from php

No Persistence provider for EntityManager named Hibernate error

Java Tomcat error: can not access a member of class with modifiers

You asked to pull from the remote but did not specify the branch github error

Leave a Reply

Your email address will not be published. Required fields are marked *