Difference between revisions of "FastCGI"

From wikieduonline
Jump to navigation Jump to search
Line 23: Line 23:
 
== Related terms ==
 
== Related terms ==
 
* [[UWSGI]]
 
* [[UWSGI]]
 
+
* <code>[[systemctl status php7.2-fpm]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 18:50, 30 August 2021

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.


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

Advertising: