Skip to content

php.ini settings

Add or change PHP settings such as memory limit and upload size for a website.

What you can do

  • Add your own php.ini directives for a website, such as memory_limit or upload_max_filesize
  • Change or remove directives you have added

What you cannot do

  • Go beyond the memory and CPU limits your hosting provider has set for the website, whatever value you enter in php.ini (Only your hosting provider can do this.)
  • Edit the server-wide PHP configuration (Only your hosting provider can do this.)

Depends on your package

  • Whether the php.ini editor is shown

The php.ini file holds PHP’s settings. The editor lets you add settings for one website without editing files.

  1. Open the website and select Advanced > Developer tools.
  2. Scroll to php.ini editor and select Add directive.
  3. Enter the Directive name, for example upload_max_filesize.
  4. Enter the Value, for example 64M.
  5. Select Create.

The directive appears in the list. If the change does not take effect straight away, select Restart in the PHP section.

Directive What it controls Example
memory_limit Memory one PHP request may use 256M
upload_max_filesize Largest single file upload 64M
post_max_size Largest form submission. Set it at least as large as upload_max_filesize 64M
max_execution_time Seconds a script may run 120
max_input_vars Number of form fields accepted 3000
display_errors Show errors on the page. Keep Off on a live site Off

Your package does not include it. Ask your hosting provider to change the setting, or to add the editor to your package.

Checked against Enhance 12.28.0 on 2026-12-01: observed in the panel.