N
N
NeTLeaDeR2018-02-13 19:11:16
PHP
NeTLeaDeR, 2018-02-13 19:11:16

Why is phalcon not installed?

Trying to install phalcon on vds (ubuntu 14.04). I do everything according to the instructions

curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | sudo bash
sudo apt-get install php5-phalcon

I restart nginx, I go to the site - 500 error. nginx log:
2018/02/12 21:58:23 [error] 7431#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Class 'Phalcon\Loader' not found in /var/www/phalcon/public/index.php on line 15" while reading response header from upstream, client: 178.215.82.22, server: 185.146.157.117, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "*******"

I googled that this is due to the fact that somehow the falcon got up wrong. As I understand it, the phalcon section should appear in phpinfo(), but for some reason it does not appear. Where is the mistake?
UPD: If I use the php -i command in the terminal - the falcon module is displayed and has the status enabled, but when I use phpinfo - there is no section, and the site still does not work and gives this error

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Nesmeyanov, 2018-02-13
@NeTLeaDeR

ini for the server and for the console are different. Just add an extension to the server environment and everything will work.
1) In the console, just look at the paths to the extensions, they are something like this: /etc/php/7.2/...
2) There are several folders, one of them is cli - these are console configs
3) Move (copy) the link to the falcon to another with a web environment (I don’t remember exactly what it’s called, but it will be clear by name there).
`sudo service php-fpm restart` and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question