**Operating system: CentOS Linux ** OS version: 8.3.2011
After updating Virtualmin to the current version, the max_execution_time setting (set to 900 seconds) is not implemented by wordpress. Any value I set in Virtualmin> Services> PHP 7.4 Configuration and in Webmin> Tools> PHP Configuration> Change PHP Configuration>
it is not accepted by Wordpress. On a wordpress site it shows me a value = 0 while I set a value of 900 (which I also see in the manual configuration of Virtualmin / Webmin).
Is this a Virtualmin bug? How to solve the problem?
The easiest solution is to create a small PHP file under virtual server (your domain) and call for phpinfo() function in that file, to see if you’re changing the right configs and running expected PHP version, and in expected mode.
If you manually editing those configs, related services would need a restart.
Notice this caveat for max_execution_time = in our php.ini files:
; Note: This directive is hardcoded to 0 for the CLI SAPI
I’m wondering if Wordpress is referring to scripts exectuted by the PHP CLI. i.e., It could be that you’re actually good to go and nothing is wrong (according to your phpinfo page).
If you have a htaccess file make sure you don’t have a lower value set in it. That’s typically what happens is the htaccess file overrides the setting you dictate in php.ini.
I’ve even seen some people (for whatever reason) set php limits in their config.php Wordpress file. Check that too and make sure that isn’t what is going on.
Thank you for your suggestion. I use Nginx, not Apache and therefore I don’t have an htaccess file. Inside the config.php file I have not set the max_execution_time parameter. The value = 0 that I see in wordpress is reported to me by the DIVI theme and by an image processing plugin.