Difference between revisions of "FastCGI"
Jump to navigation
Jump to search
m (Welcome moved page FastCGI pass to FastCGI) Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 20: | Line 20: | ||
[[error.log (Nginx)|error.log]] | [[error.log (Nginx)|error.log]] | ||
FastCGI sent in stderr: "PHP message: [[PHP]] Fatal error: Uncaught Error: Class .../... | FastCGI sent in stderr: "PHP message: [[PHP]] Fatal error: Uncaught Error: Class .../... | ||
+ | . | ||
+ | == Related terms == | ||
+ | * [[UWSGI]] | ||
+ | |||
== See also == | == See also == |
Revision as of 11:01, 25 September 2020
One of the main use-cases of FastCGI proxying within Nginx is for PHP processing. Unlike Apache, which can handle PHP processing directly with the use of the mod_php module, Nginx must rely on a separate PHP processor to handle PHP requests. Most often, this processing is handled with php-fpm
, a PHP processor that has been extensively tested to work with Nginx.
/etc/nginx/nginx.conf
: fastcgi_pass
Directives:
fastcgi_param
fastcgi_pass
/etc/nginx/fastcgi.conf
/etc/nginx/snippets/fastcgi-php.conf
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class .../...
.
Related terms
See also
- PHP,
php-fpm, www.conf
,php -i
, PHP sessions, symfony,fastcgi_pass
,sessionclean (shell script)
,phpsessionclean.service (systemd service),phpquery
,php.ini
,/var/log/php*
, PECL,php --help
, PHPUnit, Laravel, PHP framework, Composer,phpbrew, Xdebug, php --version
, PHP Fatal error, Hello, World! (php)] - Web server: Nginx:
/etc/nginx/nginx.conf
,nginx -t
, Nginx logs, Nginx change log, PHP,php-fpm
, Let's encrypt, Nginx directives, Reverse Proxy, Configure HTTP redirection Nginx, Return,proxy_pass (Reverse proxy)
,ngx_http_rewrite_module
,/etc/nginx/sites-enabled/
,error.log
,access.log
,/nginx status
, AIO
Advertising: