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

PHP Warning: PHP Startup: Unable to load dynamic library phalcon.so: undefined symbol: php_pdo_g$

I have PHP Version 5.6.29 and i have to install phalcon 2.0.10 and also tried with phalcon 2.0.13 version on ubuntu14.04 system. But i am getting below error in apache error log

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/phalcon.so' - /usr/lib/php/20131226/phalcon.so: undefined symbol: php_pdo_g$

please help me here.



85.5k
edited Dec '16

14.04 with php 5.6 ... so you compile the php yourself / or you are using some other vendor?

both cases you are probably missing pdo

--with-pdo-mysql[=DIR]

edited Dec '16

You have not linked phalcon.so binary with your PHP/application server binary. Check php.ini config for loaded extensions.

But your extensions directory seems valid: /usr/lib/php/20131226/phalcon.so Just copy phalcon.so from compiled directory to that dir manually.

You must load phalcon after loading pdo.