PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/phalcon.so' - /usr/lib/php5/20121212/phalcon.so: undefined symbol: php_pdo_get_dbh_ce in Unknown on line 0
I have renamed the phalcon.ini to 50-phalcon.ini , and in my /etc/php5/fpm/conf.d/ is like that:
lrwxrwxrwx 1 root root 32 Sep 4 01:34 05-opcache.ini -> ../../mods-available/opcache.ini
lrwxrwxrwx 1 root root 32 Sep 4 01:34 10-mysqlnd.ini -> ../../mods-available/mysqlnd.ini
lrwxrwxrwx 1 root root 28 Sep 4 01:34 10-pdo.ini -> ../../mods-available/pdo.ini
lrwxrwxrwx 1 root root 29 Sep 4 01:34 20-curl.ini -> ../../mods-available/curl.ini
lrwxrwxrwx 1 root root 27 Sep 4 01:34 20-gd.ini -> ../../mods-available/gd.ini
lrwxrwxrwx 1 root root 29 Sep 4 01:34 20-json.ini -> ../../mods-available/json.ini
lrwxrwxrwx 1 root root 31 Sep 4 01:34 20-mysqli.ini -> ../../mods-available/mysqli.ini
lrwxrwxrwx 1 root root 30 Sep 4 01:34 20-mysql.ini -> ../../mods-available/mysql.ini
lrwxrwxrwx 1 root root 34 Sep 4 01:34 20-pdo_mysql.ini -> ../../mods-available/pdo_mysql.ini
lrwxrwxrwx 1 root root 33 Sep 4 01:34 20-readline.ini -> ../../mods-available/readline.ini
lrwxrwxrwx 1 root root 36 Sep 2 16:03 50-phalcon.ini -> /etc/php5/mods-available/phalcon.ini
lrwxrwxrwx 1 root root 36 Sep 3 00:08 msgpack.ini -> /etc/php5/mods-available/msgpack.ini
lrwxrwxrwx 1 root root 34 Sep 3 00:11 redis.ini -> /etc/php5/mods-available/redis.ini
but, didn't work, still show error message...
Server:ngx_openresty/1.4.2.8
php version:
PHP 5.5.16-1+deb.sury.org~precise+1 (cli) (built: Aug 25 2014 10:23:59)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
os: ubuntu 12.04
Linux myBlog 3.2.0-24-virtual #37-Ubuntu SMP Wed Apr 25 12:51:49 UTC 2012 i686 i686 i386 GNU/Linux
Maybe you have the same problem as described here ?
http://forum.phalconphp.com/discussion/1900/error-installing-php-pdo-get-dbh-ce
thanks, i have read it before submit this issure, but in my system I also have: 20-pdo_mysql.ini 50-phalcon.ini
but... still not working...
can you try to put the line from phalcon.ini directly to the php.ini ?
yes, I try to put the line extension=phalcon.so to php.ini, and remove phalcon.ini... but it still output the error message
are you using php-fpm ? did you restart it ? which ubuntu version are you using ?
yes, I am using php-fpm and I am sure I restart the php-fpm... I use ubuntu 12.04
Ok. Had the same problem a few days ago.
And this both links helped me: http://forum.phalconphp.com/discussion/1900/error-installing-php-pdo-get-dbh-ce http://sherwinrobles.blogspot.de/2014/04/installing-phalcon-developer-tools-in.html
But in your case i dont know how to solve that...
i have same problem. for the phalcon.ini i mv it to 20-phalcon.ini and remove the "extention=phalcon.so" from the /etc/php.ini and the problem is solved
The Phalcon extension has to be included after all of your other extensions, If you have the extension added to your main php.ini (look for extension=phalcon.so) you have to remove it and create a syslink at:
/etc/php5/fpm/conf.d
with the following command:
ln -s /etc/php5/mods-available/phalcon.ini 20-phalcon.ini
Then restart your php5-fpm and the webserver.