We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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: https://docs.phalcon.io/en/latest/reference/install.html

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



98.9k

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

php -i | grep Loaded


24.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: php_json_decode_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



33.8k
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).



24.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.



98.9k

That may be caused because of:

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


22.8k

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.