R
R
Rasul_qa2018-05-16 15:56:42
linux
Rasul_qa, 2018-05-16 15:56:42

How to properly install and configure falcon?

Good day good people!
I am deploying the project locally on ubuntu 18. The
technology stack is used: php7, nginx, falcon, mysql
Tell me how to install falcon correctly, it looks like I put it crookedly :(
Attached nginx logs, swears at falcon... There is no information about it in php_info.
2018 /05/16 11:55:29 [error] 27822#27822: *28 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class 'Phalcon\Config' not found in /var/www/html/ backend/config/config.php:5
​​Stack trace:
#0 /var/www/html/backend/index.php(27): include()
#1 {main}
thrown in /var/www/html/backend/config/config.php on line 5" while reading response header from upstream, client: ::1, server: 127.0.0.1, request: "GET /app.css?v= 1526373912940 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "localhost", referrer: " localhost "
2018/05/16 11: 55:29 [error] 27822#27822: *27 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class 'Phalcon\Config' not found in /var/www/html/backend/config/config. php:5
​​Stack trace:
#0 /var/www/html/backend/index.php(27): include()
#1 {main}
thrown in /var/www/html/backend/config/config.php on line 5" while reading response header from upstream, client: ::1, server: 127.0.0.1, request: "GET /app.js?v= 1526373912940 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "localhost", referrer: " localhost "

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Sundukov, 2018-05-16
@alekciy

For ubuntu14/16, but in theory it should work on newer versions:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.0-phalcon

C
catanfa, 2018-05-17
@catanfa

Looks like Phalcon just isn't installed. See the output there should be information about the Phalcon extension. To install, follow the instructions on the official website. phpinfo(); exit;

V
Vanik Khachatryan, 2018-05-19
@VaniXac

A common mistake is that the phalcon.dll extension itself and the php version do not match.
Check the version itself, and bit depth.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question