Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.8.9. max_execution_time
The max_execution_time parameter specifies the maximum time, in seconds, within which the script must fully load. If this does not happen, the parser terminates the script. This mechanism helps prevent the server from freezing due to poorly written scripts.
Parameter value:
- For all shared hosting plans, the default time is 30 seconds, with the option to extend it to 600 seconds (10 minutes).
- With business hosting plans, you can extend the time limit up to 3600 seconds (1 hour).
A value of zero for this parameter in the PHP settings means "use the limit of the current hosting plan".
If you need to regularly perform operations that require a longer execution time, you can:
- Consider running the desired script on a schedule using the cron task scheduler, which has a higher execution time limit.
- If you are using a standard hosting plan, consider upgrading your current plan to one of the business hosting plans, which offer higher execution time limits.
- Consider hosting the site on a VPS or a dedicated server without our administration, where you can adjust the limit yourself, up to and including disabling it entirely.
How is execution time calculated?
Themax_execution_time parameter takes into account only the actual execution time of the script. Any waiting time during execution is not taken into account, so in reality, scripts may run longer than the set limit. Most often, the duration of a script increases due to calls to various resources within the script and waiting for responses from them (for example, a database or another server from which data is requested). If a script runs for an extended period, it will be forcibly terminated due to the process execution time limit (which varies across different plan types).