Maximum PHP script run time

We are running Virtualmin3.92.gpl and we are trying to upload an xls file and the upload just times out. If we navigate to ‘Server Configuration’, then ‘Website Options’. The first setting, ‘Maximum PHP script run time’. The default is unlimited but if we change it to 3600 and save the settings, the file will upload correctly. Then after a certain period of time we will try the upload again and the upload times out. We then toggle back to unlimited, and the file will upload correctly. Then the cycle begins all over again. We have to continue toggling back and forth to complete our upload.

Has any one seen this before? Is there a way to make this setting stick without toggling back and forth?



Howdy -- it doesn't sound like you're seeing an issue with Virtualmin -- it sounds more like there's an issue with either FCGID, or maybe PHP.

What you may want to do is switch your PHP Execution Mode to "CGI" to see if that works properly.

To do that, go into Server Configuration -> Website Options, and in there you can change the PHP Execution Mode.

Thank you, I'll give it a shot! I appreciate the speedy reply!


When we changed this option we are getting the following error.

"Failed to save website options: No such section for mod_fcgid directives"

Any ideas?

Thanks again!

So is it still set to FCGID then?

Also, do you have the standard Apache version there? You can determine that by running this command:

rpm -qa | grep httpd

the Apache version is httpd-2.2.3-63.1.vm

There are 4 domains and some sub domains. Here are the PHP script execution modes for each domain and sub domain:

  1. – apache
  2. - apache
  3. – fcgid a. - fcgid
  4. – fcgid a. = fcgid b. = fcgid