How to change PHP settings (php.ini), e.g. memory_limit

How to change PHP settings (php.ini), e.g. memory_limit

Some applications need different PHP settings than the defaults – for example more memory (memory_limit) or larger uploads (upload_max_filesize). You can adjust these settings in the php.ini editor of the Control Panel.

Step 1: Open the php.ini editor

In the Control Panel, open your website, click Advanced in the top menu and choose Developer tools. Click php.ini editor on the left. You see the most important settings (directives) with their current values. Inherited means that the default value of the server is used.

php.ini editor with the list of directives and the Edit menu

Step 2: Change a value

  1. Click the three dots (⋮) next to the setting you want to change and choose Edit.
  2. Enter the new value in the field Text, e.g. 512M for memory_limit.
  3. Click Save.
php.ini editor with memory_limit in edit mode and the Save button
Info

Frequently changed settings: memory_limit (memory per PHP script), upload_max_filesize and post_max_size (maximum upload size), max_execution_time (maximum run time of a script in seconds).

Step 3: Check the result

The changed setting is now shown with your own value and without the label Inherited.

php.ini editor with memory_limit set to 512M

Idea

Tip: With Add directive you can add further PHP settings that are not yet in the list.

Warning

Important: Only change settings if your application requires it. Values that are too high can affect the stability of your website. If something no longer works, set the value back to the original value.