Difference between revisions of "FastCGI"

From wikieduonline
Jump to navigation Jump to search
m (Welcome moved page Fastcgi pass to FastCGI pass)
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 3: Line 3:
  
 
<code>/etc/nginx/nginx.conf</code>: <code>fastcgi_pass</code>
 
<code>/etc/nginx/nginx.conf</code>: <code>fastcgi_pass</code>
 +
 +
Directives:
 +
* <code>fastcgi_param</code>
 +
* <code>fastcgi_pass</code>
 +
  
  

Revision as of 20:36, 7 February 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: Clas

See also

Advertising: