Hi there. Just one hour ago everything was working just fine, I had PHP 5.3.x (can't remember) and I was working on a phalcon project without issues. Then I needed to upgrade PHP version, so I did, and now, I'm running in PHP 5.5.10, but phalcon just died. Right now with new php version I have:
$ php5 -v PHP 5.5.10-1+deb.sury.org~precise+1 (cli) (built: Mar 27 2014 16:18:01) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
In the installation, terminal asked me if I wanted to replace apache and php configuration files, I said yes to everything, knowing that then I needed to add the extension to the
I followed same video I followed first time: https://www.youtube.com/watch?v=5Nr79LF7Mik to install phalcon, and it succesfully compiled like this:
Build complete. Don't forget to run 'make test'. Installing shared extensions: /usr/lib/php5/20121212/
So I looked for php.ini in
/etc/php5/apache2/php.ini and added the line
extension=phalcon.so restarted the server using
sudo service apache2 restart and surprise surprise, printing
phpinfo(), phalcon extension is not loaded.
Looking in forums, I found: http://forum.phalcon.io/discussion/660/which-lamp-php-ini-file-do-you-add-extension-phalcon-so-to- saying to check which is the correct php.ini, where I got:
$ php -i | grep Loaded Loaded Configuration File => /etc/php5/cli/php.ini libXML Loaded Version => 20708
So I added
extension=phalcon.so in that file, restarted the server, didn't work.
I found another one: http://serverfault.com/questions/431740/phalcon-doesnt-load where it says that I can load the extension with the full path, so I first checked in
/usr/lib/php5/20121212/ and the
phalcon.so file IS THERE. So I changed the line
extension=/usr/lib/php5/20121212/phalcon.so, restarted the server, didn't work.
I kept looking, I found this: http://forum.phalcon.io/discussion/1959/phalcon-with-php-5-5-10-has-problems- where the guy has same PHP version that I do, and solved the issue by creating a new file called
phalcon.ini and placing it into
/etc/php5/apache2/conf.d/ with the content
extension=phalcon.so, I tried that, restarted the server, not working.
Finally, I started asking if the extension dir is correct like this:
$ php-config --extension-dir /usr/lib/php5/20121212
So I'm not crazy, it's loading extensions from where it should, the
phalcon.so file is there, I have the line in both
php.ini files, and nothing works, I gave up, any ideas how to have phalcon working again?