Customer is trying to open the website located on NG hosting, but the following error is shown in browser:
Gateway Time-out The gateway did not receive a timely response from the upstream server or application.
The following error is shown in the webspace log:
Script timed out before returning headers: php-cgi
Case 1: the default timeout for CGI scripts is 120 seconds, and Apache closes the connection if the script remains silent all that time, killing the nested php-cgi process.
Case 2: NFS share did not release lock.
You need to increase the ScriptTTL value to e.g 1200 in the /etc/httpd/conf.d/modsucgid.conf file on each NG Hosting web server.
[root@webNG01 ~]# grep ScriptTTL /etc/httpd/conf.d/modsucgid.conf # ScriptTTL - number of seconds after which script will be killed ScriptTTL 1200
- Restart the Apache service to make the changes effective.
Stop NFS service:
Kill the pending tasks of nfsshare.
Start NFS service:
Configure nfs lockd ports and make sure that it is listening properly:
[root@ngnfs ~]# grep -i lock /etc/sysconfig/nfs LOCKD_TCPPORT=10300 LOCKD_UDPPORT=10301