If you ever need to modify the default FastCGI values for your PHP application (or any other that uses FastCGI), here we tell you how to do it in Nginx. As an example, we'll increase the read timeout and send timeout up to 90 secs (from the default 60 secs) for a site with domain site.com.

Take a quick look first to the basics about fine-tuning your applications with Moss in case you haven't done it yet.

Nginx configuration

  1. Log into your server as user moss : ssh moss@<server-ip> 
  2. Using sudo and your favorite text editor, add the following lines to file /etc/openresty/fastcgi_params.site.com:
fastcgi_read_timeout 90s;
fastcgi_send_timeout 90s;

Provision your website

  1. Log into Moss
  2. Head to the details of site.com 
  3. Click the 'Provision' button and wait until Moss finishes the process

Did this answer your question?