We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Getting Error in setting up Phalcon

I am trying to setup Phalcon extension with php5.6.10 - It gives some error related to compiler_globals :

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php-5.6.10/lib/php/extensions/no-debug-zts-20131226/phalcon.so' - /usr/local/php-5.6.10/lib/php/extensions/no-debug-zts-20131226/phalcon.so: undefined symbol: compiler_globals in Unknown on line 0

Have you compiled Phalcon in a different machine/php version than the one that is executing Phalcon?

Seems the extension is not found by your server configuration file php.ini

To debug,

Run phpinfo() function to see if the extension is well installed or comment out the line that calls the extension in your server configuration file.

Then based on your server environment follow the official documentation https://docs.phalcon.io/en/latest/reference/install.html and find where you are not getting it right.


Got it. Phalcon was compiled with a different version of php. Got it right by changing enviroment vars. Thanks everybody.


How did you do that? (I'm Linux newbie)