Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to view the default value of Apache timeout of my server, but I found nothing about that in /etc/httpd/conf/httpd.conf . So where is " timeout " supposed to be and how do I change its value ?

The OS is Centos 7 | Apache version : 2.4.6

share|improve this question
    
Please check the answers in this question: stackoverflow.com/questions/9629566/… – Romeo Ninov Mar 18 at 11:45
    
I've looked at it before I post this question... but it doesn't work with me neither by adding new timeout value in httpd.conf nor by creating a new conf file in conf.d and then adding the new timeout value inside. It seems ( but I'm not sure ) the server still use the default value which is mostly 300 second . – Zorba Mar 18 at 13:29
    
Please update your question with the version of apache you use. As well as additional modules (if implemented) – Romeo Ninov Mar 18 at 13:56
    
I updated the question with Apache version ... There are a lot of modules installed now, I cannot really distinguish the additional ones. – Zorba Mar 18 at 15:57

From Apache docs: timeout This should be written to server httpd.conf:

TimeOut Num

More info from the above link:

Syntax: TimeOut seconds
Default:    TimeOut 300
Context:    server config, virtual host

Also, if you need to increase your script execution time, that's

max_execution_time 60 

in php.ini (number is seconds)

share|improve this answer
    
In my server it's not written neither in httpd.conf nor in any other file in /etc/httpd/ ... and after I created a new conf file and then added Timeout value inside, I cannot test by a proven way what is the exact value of Timeout that my server is using at this moment. – Zorba Mar 18 at 18:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.