Fix this issue in 6 easy steps
- Login to SSH.
- Type
cd /etc/apache2/mods-enabled
and press enter. - Type
sudo nano fcgid.conf
and press enter. - Find the line with
FcgidConnectTimeout 20
and change it to readFcgidConnectTimeout 120
. - Exit pico by doing
CTRL+X
orCMD+X
, then pressY
to save. - Type:
sudo service apache2 restart
and press enter.
If you continue to get the problem then you can increase the 120 to a higher number.
TIP: Use Pingdom (it’s free) to notify you when the website is not accessible.
Server-wide solution:
- Connect to the server using SSH.
- Open the
/etc/apache2/mods-enabled/fcgid.conf
file (on Debian/Ubuntu) or the/etc/httpd/conf.d/fcgid.conf
file (on RedHat/CentOS/CloudLinux), edit it with text editor and increase “FcgidIdleTimeout” and “FcgidProcessLifeTime” parameters to “300” or more:FcgidIdleTimeout 300
FcgidProcessLifeTime 300 - Reload Apache service configuration:On RedHat/CentOS/CloudLinux systems:# service httpd reloadOn Debian/Ubuntu systems:# service apache2 reload
- If it does not help, increase the value of both parameters to higher values and reload Apache service configuration.
IMPORTANT
In VirtualMin all this changes can be make from interface.