Free Tech Forum
It is currently Thu Aug 24, 2017 4:49 am

Only registered members can access to many hidden very useful forums. Click here to Register for free or Click here to Login

Board index » Webmasters » Web Hosting





Post new topic Reply to topic

 [ 1 post ] 

Author Message

Online
Bot

Date:
Posts: n/a

 
#  

  #  

Offline
Site Admin
User avatar

Joined: Wed Mar 17, 2010 4:36 pm
Posts: 142

Top  
How to fix internal server error 500 in cpanel web server because of fcgid:warn in /usr/local/apache/logs/error_log as mod_fcgid: read data timeout in 40 seconds ?

Sometime you may face internal server error 500. When you check the apache server error log you can see fcgid warning as mod_fcgid: read data timeout in 40 seconds. By default cPanel software is set to mod_fcgid read data timeout in 40 seconds. This is not enough for some of the heavy scripts run by you website or your clients.

If you are running a web hosting company or having website with heavy scripts, then you must change the value of mod_fcgid read timeout value to 100 or above. I prefer to use the value 400.

You can check Apache server log by using the following command via terminal client in mac or putty.exe in windows
Code:
tail -n 200 /usr/local/apache/logs/error_log

The above command will list the last 200 lines of error codes. You need to be looking for the internal server or 500 error.

if you see anything like below, it means the internal server error occurred due to mod_fcgid: read data timeout in 40 seconds.
Code:
[Mon Mar 13 16:43:13.293822 2017] [fcgid:warn] [pid 634125] [client 123.00.00.00:50441] mod_fcgid: read data timeout in 40 seconds, referer: http://www.demo.com/testing/auto_api_to_shopping


Now to fix this you need to increase mod_fcgid read data timeout value from 40 to higher value say 400.

How to increase mod_fcgid read data timeout value in cpanel/WHM CentOS/CloudLinux web server ?


Login to WHM > Apache Configuration > Include Editor > Post VirtualHost Include > All

Add the following code into it.

Code:
<IfModule mod_fcgid.c>
FcgidProcessLifeTime 8200
FcgidIOTimeout 8200
FcgidConnectTimeout 400
FcgidMaxRequestLen 1000000000
</IfModule>


Restart Apache.

This will change the FastCGI timeout to 400 seconds.

You are done !

 
 Profile  
Display posts from previous:  Sort by  

Online
Bot

Joined: Wed Mar 17, 2010 4:36 pm
Posts: n/a

 
#  

  #  
Post new topic Reply to topic  [ 1 post ] 

Board index » Webmasters » Web Hosting
Related topics
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Facebook : Government Requests For User Data Rises 24%

soumya

0

1403

Wed Nov 05, 2014 1:03 pm

soumya View the latest post

There are no new unread posts for this topic. Attachment(s) Resolve FTP "Failed to retrieve directory listing" error in FileZilla for Mac / Windows

pratish

0

797

Sat Apr 01, 2017 3:52 pm

pratish View the latest post

 

Jump to:  


Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
cron
News News Site map Site map RSS Feed RSS Feed Channel list Channel list
A project by Pratish | Managed by IT PLORE IT Company Kerala | All times are UTC + 5:30 hours

Go to Top