Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The PHP Fatal error of exceeding the maximum execution time of 600 seconds can be resolved in Laravel Unit Test by increasing the maximum execution time limit in the php.ini file or in the .htaccess file.

To increase the maximum execution time limit, follow the below mentioned steps:

  1. Open the php.ini file in the editor.

  2. Search for the below line of code and replace the value with the desired time limit.

    max_execution_time = 600

  3. Save and close the file.

  4. If this does not work, you can also increase the time limit through the .htaccess file by adding the following line of code.

    php_value max_execution_time [desired time limit]

  5. Save and close the file.

After making the changes, restart the web server to apply the changes.