Adjust PHP setting max_execution_time

Preface

The PHP setting max_execution_time defines the maximum runtime for PHP scripts. By limiting the runtime, it can be ensured that individual processes do not run for too long and thus block other, newer PHP processes.


A high maximum script runtime can lead to the instability of your web applications. If you want to adjust the value due to background processes, you can alternatively use our Cronjobs in the customer center to execute the tasks via SSH. We recommend a maximum value of 60 seconds here.


To adjust the PHP setting max_execution_time, first log in to our customer center at account.creoline.de with your access data.

Use the navigation to select your server under Server → Virtual servers for which you want to change the PHP settings. Then open the Plesk Control Panel via the Plesk Control Panel menu item.


If the menu item is not displayed on your server, you will find further options for logging in in the article Logging in to the Plesk Control Panel.



Customization for a single domain

Once you are logged into Plesk, you can select the domain via the global search or the Subscriptions menu item.

Plesk - Abonnements

You can use the PHP settings button to adjust the general PHP settings:


Plesk - max_execution_time

The value max_execution_time defines the maximum permitted runtime for PHP scripts. This value is freely definable and is specified in the unit seconds.


Tip: In contrast to the preselected values from the drop-down menu, you can also enter your own value by entering a number in the input field.


After the settings have been saved, the web server automatically reloads the configuration using a graceful restart, so that existing requests are not aborted but paused.



Customization for all domains

To increase or decrease the PHP setting for all domains of a PHP version, the PHP

configuration file php.ini must be adjusted. To do this, select PHP settings in the left sidebar under Tools & settings.


Plesk - PHP settingsThen click on the PHP version for which you want to adjust the setting globally.

You can access the PHP configuration file via the php.ini tab:


Plesk - php.iniIn the text field, search for the term max_execution_time and replace the specified value with the desired new value. The default setting in Plesk is 30 (seconds).


Then click on the OK button to save the changes. The changes will take effect immediately for all subscriptions that have the selected PHP version configured and have not been overridden using the custom PHP setting.