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

Phalcon not load on Nginx Ubuntu 14.04 64 Bit

Hi Phalconese / Phalconian...

I have problem when installing Phalcon on Nginx Ubuntu 14.04 64 Bit.

I have try official documen, https://askubuntu.com/questions/440825/cant-install-phalcon-extention-on-ubuntu#comment833570_440947 and https://serverfault.com/questions/598812/phalcon-does-not-load-under-nginx-and-php5-fpm

But still no luck.

My PHP Info: PHP Version 5.5.9-1ubuntu4.7 System Linux host 2.6.32-042stab104.1 #1 SMP Thu Jan 29 12:58:41 MSK 2015 x86_64 Build Date Mar 16 2015 20:45:55 Server API FPM/FastCGI Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php5/fpm Loaded Configuration File /etc/php5/fpm/php.ini Scan this dir for additional .ini files /etc/php5/fpm/conf.d

Do i need to reinstall others PHP version? Thanks

You need put phalcon.ini file in /etc/php5/fpm/conf.d .

edited Apr '15

you must add complete path to your phalcon.so to /etc/php5/fpm/php.ini and /etc/php5/fpm/conf.d/30-phalcon.ini and then restart fpm+nginx. We put it in 30-phalcon.ini to be loaded before other extensions. Also the extension must be compiled for your php version and linux version.

You could use the ppa and no longer need to set anything, just do a nginx+fpm restart. (php 5.5+ubuntu 14.04(x86_64)) https://launchpad.net/~phalcon/+archive/ubuntu/stable

to make sure that it works for your machine is better to compile it from source



18.9k
Accepted
answer

My server is identical with your, and I followed this https://phalcon.io/en/download

sudo apt-add-repository ppa:phalcon/stable

sudo apt-get update

sudo apt-get install php5-phalcon

Everything is fine, no need to add phalcon.ini file in /etc/php5/fpm/conf.d

And make sure to check your php-fpm installation, I followed this link https://dashbaard.com/blog/magento/magento-fast-server-nginx/

Finally it work!.

Thanks all