Frederic
Frederic

Reputation: 375

60 sec timeout, unable to find the right param to fix it

My website exits (error 500) if a script takes more than 60 sec to be executed, but i don't understand why.

Phpinfo:

max_execution_time = 600
max_input_time = 600

In my httpd.conf file:

timeout = 600

So i don't get how to increase this parameter.

I found in my phpinfo (but i have no idea if it's related or not):

default_socket_timeout = 60
mysql.connect_timeout = 60

I think the mysql.connect_timeout is not related at all (i got the error on a page with a sleep(65); only...)

Upvotes: 4

Views: 4705

Answers (2)

Markus Hofmann
Markus Hofmann

Reputation: 3447

Have a look at…

…and:

Happy reading :-)

Upvotes: 0

Frederic
Frederic

Reputation: 375

I finaly found the answer !

I will share the answer since i think it may help someone else !

I found in the apache error_log the following :

[Tue Jul 09 15:17:47 2013] [warn] [client 212.198.111.252] mod_fcgid: read data timeout in 45 seconds
[Tue Jul 09 15:17:47 2013] [error] [client 212.198.111.252] Premature end of script headers: test_max_execution.php

I then modified a file located in /etc/httpd/conf.d/ named fcgid.conf I increased 3 parameters (FcgidIOtimeout, FcgidIdleTimeout & FcgidConnectTimeout) and everything seems to work properly now !

Have a nice day and thank you for paying attention to my question !

Frederic

Upvotes: 3

Related Questions