Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phalcon module loaded but still class can't be found

I have installed Phalcon on my vServer and it seems to be loaded, but if I try to run website I get an error

PHP Fatal error: Class 'Phalcon\\Config\\Adapter\\Ini' not found in /home...

php -v

PHP 5.6.10 (cli) (built: Jun 11 2015 08:33:51) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

I followed the instructions on Phalcon website. If I list php modules using php -m Phalcon is listed, I don't have any errors, just don't know why it's not working!

Also, Phalcon is not listed on phpinfo(); page.

like image 224
Milos Miskone Sretin Avatar asked Nov 17 '25 08:11

Milos Miskone Sretin


2 Answers

looks like you changed the config for the php console client but that config is not the same for the php module in apache.

Review what config is being loaded for apache module

like image 131
ragnar Avatar answered Nov 19 '25 22:11

ragnar


When installing phalcon in order to get the extension working make sure to restart nginx / apache2, and if you are running PHP as a module php5-fpm service as well.

$ sudo service nginx restart
$ sudo service php5-fpm restart
like image 29
www-data Avatar answered Nov 19 '25 23:11

www-data



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!