Unable to install Phalcon 3.0 on CentOS 7 + PHP 7

Hello,

I'm trying to install Phalcon 3.0 on a server running CentOS 7, Apache 2.4 and PHP 7 (FastCGI).

I followed up the instructions provided by the official documentation, Phalcon is installed on my server successfully, the extension is enabled on php.ini configuration but when I run phpinfo() it doesn't show phalcon as an active extension.

I found following error message in php-fpm error logs:

PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/phalcon.so' - /usr/lib64/php/modules/phalcon.so: undefined symbol: phpjsondecode_ex in Unknown on line 0

This message appears everytime I restart php-fpm service.

Could you please help to fix this issue?

Regards,

Velizar



57.3k

did you use zephir to compile it or you downlaoded it ?

phalcon.so needs to be loaded after json.so

did you use zephir to compile it or you downlaoded it ?

I followed the instructions hot to downlodad and install Phalcon.

phalcon.so needs to be loaded after json.so

Thank you for this useful infomation. I'll check my PHP configuration and will try again.

edited Aug '16

Made my day! Forgot to install json.so

phalcon.so needs to be loaded after json.so

  1. Install php70u-json

    yum install -y php70u-json

  2. Create 50-phalcon.ini

    cd /etc/php.d

vi 50-phalcon.ini

extension = phalcon.so

  1. Restart apache

    systemctl restart httpd

php -m