Changing php.ini for longer execution time

If you’re running a script on a website that takes more than 60 seconds to complete, you may get an error message similar to:

Fatal error: Maximum execution time of 60 seconds exceeded

If this occurs, what you simply need to do is change your php.ini file.

Find the line that reads max_execution_time = 60

Change that line to read max_execution_time = 1800

1800 is equal to 30 minutes, which should be plenty of time for pretty much any script to run.

After making the change to your php.ini file, you’ll need to run the command: /sbin/service httpd restart

Hope this helps.

You must be logged in to post a comment.