Maximum Execution Time


I have set "maximum php script runtime" to 30 seconds in Virtual Server's "Website Options", and also in Virtualmin\Services\PHP7.2 configuration's "Resource limit". But CSF is keep reporting the Virtual Server's is exceeding executing time like more than 3200 seconds, It is about more than an hour. I can't figure out what was happening here. A little help you be great.



Howdy -- thanks for contacting us!

Well, we can't really speak to what CSF is saying there, that's not something we're too familiar with.

What problem is it that you're experiencing though? Are you seeing any issues other than the message you saw in CSF?

Not really. I wanted to know why would php-cgi would run for hours eventhough I have set it to execute it for max 30 seconds? For example, in the process log

romantic ID CPU Started Command 22431 0.2 % an hour ago /opt/rh/rh-php72/root/usr/bin/php-cgi 22443 0.1 % an hour ago /opt/rh/rh-php72/root/usr/bin/php-cgi

ausmart ID CPU Started Command 22535 0.1 % an hour ago /opt/rh/rh-php72/root/usr/bin/php-cgi 22587 0.1 % an hour ago /opt/rh/rh-php72/root/usr/bin/php-cgi

PHP Execution Modes such as FCGID can run for some time, that's by design.

Where CGI just runs and exits, FCGID stays in memory, allowing it to cache the content it runs. That means next time a user requests the same page, it'll run faster.

It's possible that's what it's seeing there.