Fix: Maximum execution time of 300 seconds exceeded

All MAMP discussions around troubleshooting and anything related to MAMP. Be as detailed as possible here when posting an issue.
Post Reply
mampsupportmod
Site Admin
Posts: 129
Joined: Wed Jan 20, 2021 3:06 am

Fix: Maximum execution time of 300 seconds exceeded

Post by mampsupportmod »

Occasionally, a site script will decide to time out or stop running. I found:

Code: Select all

PHP Fatal error:  Maximum execution time of 300 seconds exceeded in/db/driver/driver.php on line 709

Basically tells me that

Code: Select all

max_execution_time
needs to be increased in php.ini.

I set it to 1000 seconds and this has improved the stability of my scripts to continue running uninterrupted. But since one of my sites is so large, the scripts are taking longer to complete. So this will be what a lot of others face for growing sites.
Post Reply