November 26th, 2003, 04:24 AM
I am running Python scripts as cgi with the Apache web server. The scripts are running for a long time (about 10 minutes), then the result is supposed to be presented. The problem is that there is a time out after 5 minutes and the Python script is not finished.
I have updated the /etc/httpd/httpd.conf file. I set the Timeout to 6000. After that I restarted the Apache with /etc/init.d/apache restart. The application is still timed out after 5 mintes. I even restared the server, but it did not make any difference.
What can I do the prevent the timeout?
November 26th, 2003, 08:39 AM
I don't think Apache will let will let you run a CGI process for long . I believe this is one of the reasons FastCGI was created but dont quote me on that.. in any case FastCGI does allow long running processes.. maybe you'd get a better responce for Question in the Apache form?
In any case, what are you doing that required a process too run for 10 MINUTES, most don't even run for 10 SECONDS
November 26th, 2003, 08:59 AM
Thanks netytan. I already asked the question in the Apache forum with no luck. What is FastCGI? A webserver?
I am creating a web interface for production tests of one of our products. The web server runs motors among other things. The test cycles are long, up to 10 minutes.
November 26th, 2003, 03:27 PM
FastCGI is an Apache module which as i understand it allows long running CGI processes..
If this doesn't work for you i'd probably suggest you run it from the command line and save the output to a file (as html) and then lauch the file when the process is done
Sounds interesting, you mean motors on machines etc?
November 28th, 2003, 04:26 AM
The problem did not have to do with cgi timeout. I let a python script generate the time for 10 minutes. The session kept alive through the script. My mistake! Thank you for your advices!
I am doing a production test environment for a satellite terminal. So the web server is connected to the terminal and I run motors, modem, amplifier, and read values from compass, gps etc from the web server. It's really interesting work!
November 28th, 2003, 05:42 AM
def, sounds very cool! and way beond me for once i cant even image how to connect with all those things lol, anyway glad you figured it out