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?

Status: 
Active

Comments

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!

Hi,

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. Cfar.com – apache
  2. Evc-flowcore.com - apache
  3. Itsupport.com – fcgid a. V01.itsupport.com - fcgid
  4. Yweb2.com – fcgid a. Yweb2-01.yweb2.com = fcgid b. Yweb2-02.yweb2.com = fcgid