PhalconPHP not working in Ubuntu 64bit

I try to install PhalconPHP on Ubuntu 64bit Nginx server. phpinfo() showing phalcon is loaded with php but when I try to run phalcon create-project test will return the following

ERROR: Phalcon extension isn't installed, follow these instructions to install it: http://docs.phalconphp.com/en/latest/reference/install.html

I follow the instructions from Phalcon website and reply in Phalcon forum.



81.8k

Check where the php.ini is and add extension=phalcon.so to that file:

php -i | grep Loaded


13.2k

Here is the output

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/phalcon.so' - /usr/lib/php5/20131226/phalcon.so: undefined symbol: phpjsondecode_ex in Unknown on line 0

Loaded Configuration File => /etc/php5/cli/php.ini

libXML Loaded Version => 20901

extension=phalcon.so is already added to /etc/php5/cli/php.ini



17.3k
sudo nano /etc/php5/apache2/conf.d/30-phalcon.ini

Add 'extension=phalcon.so' to the file

Did you did that? (BTW Phalcon, I don't have added the extension in others INIs, just the before one).



13.2k

Already done. The problem is php is Unable to load dynamic library '/usr/lib/php5/20131226/phalcon.so'

A quick Google search found: https://bugs.php.net/bug.php?id=67140

See if the comments in that help you.



81.8k

That may be caused because of:

  • Json extension is not being loaded before Phalcon
  • Json extension is not installed


12.2k

Hi,

First try to debug the problem - Try a different version of PHP ( 5.4, 5.5. 5.5.14 etc ) and determine if it is PHP specific related problem. Next, check your php.ini and check if the extensions are loaded and extension directory is set. Lastly, do create a phpinfo page or from command line run php -m and check if the extensions are loaded successfully.

I hope this helps.