Fatal error: Maximum execution time of 300 seconds exceeded

Fatal-error-Maximum-execution-time-of-300-seconds-exceeded

You may face this Fatal error, either in exporting or importing large database into or from phpMyAdmin. If you can use Command Line to do this, then you’ll not face to this kind of an issue.

In our case you can achieve this by changing php.ini  values. Just open php.ini using a text editor. Then search for following variables and change those values accordingly.

  1. max_execution_time – set something like 3000 or 300000 or any number you want
  2. post_max_size – set post max size to any value you want 64M, 128M, etc, any value you want
  3. upload_max_filesize – also change this to something like 64M, 128M, etc

Once this is done you are one step behind. Now go to phpMyAdmin->libraries. And open config.default.php. Search for $cfg['ExecTimeLimit']. Then make its value to 0. This property means maximum execution time in seconds. You can use any value you desired and 0 for no limit.

Once done close the files and restart Apache. You’re done.

Hope you’ll enjoyed this code snippet to resolve Fatal error: Maximum execution time of 300 seconds exceeded. That is all from this tutorial. Hope you enjoyed this tutorial. Happy learning ahead. Thanks for reading.

Recommended: Please follow our step by step guide how to create a WordPress Theme from scratch. You’ll be able to create your own theme at the end of these lessons.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *