How to fine-tune the FastCGI params of an application served by Nginx in standalone mode
NOTE: We’re working on a configuration panel so that you can edit your configs right from Moss. In the meantime, you must follow the guidelines in this article.
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 called
Take a quick look first to the basics about fine-tuning your applications with Moss in case you haven’t done it yet.
- Log into your server as user
ssh [email protected]<server-ip>
sudoand your favorite text editor, add the following lines to file
fastcgi_read_timeout 90s;fastcgi_send_timeout 90s;
3. Restart Nginx from the Software tab