Maximum PHP script run time - always reset to 300 after a while

I have had this issue forever.

After a while this setting gets reset to 300:

Maximum PHP script run time

I always have to reset it to 0 around 3 times per year. I dont know where this override is coming from.

@lawk From the information you have given it is not possible to work out what the issue is, let alone a fix :smiley:

Maybe revisit this with a lot more information.

It is a GUI setting in Virtualmin. Web configuration → PHP Options.

there you can set it to unlimited or a second value.

I have it set to unlimited but for some reason it gets set to 300 seconds several times per year.

I have no idea what triggers it.

no-one can answer this for you wih this little information

  • no version numbers (Virtualmin/Webmin)
  • is it just one website
  • is it after an update (probably)
  • is it just one php version
  • is it just the one website
  • is it php-FPM
  • does the value get reflect in the actual website site (i.e. php_info())
  • check the relevant php.ini/user.ini does not have syntax error in it.

Look for all instances of the max_execution_time and set each one to a slightly different number (eg: 61, 62, 63 or 301, 302, 303) eventually you will find out which one is causing the override because when the override happens you can see the unique number that has been used and therefore the ini file that it was pulled from.

TBF it’s answerable @lawk has an issue with their PHP configuration changing, it’s true we don’t know if this is system wide of per domain
if system wide

  • check the last modification date of the file
  • with that data check the package manager logs to see if an update to PHP was made around/before that time
  • if there is a webmin/virtualmin log (IDK) check if the file was modified & perhaps by whom

if per domain

  • is there a script running that adjusts the settings to suit it’s requirements & restatting PHP

We don’t know in which mode php is running with and as you say there has not been enough information given to diagnose what’s going on so from that point just blame virtualmin/webmin for doing the modifications where I doubt this issue has anything to do with virtualmin/webmin