Skip to main content

MultiPHP INI Editor

advanced, php, multiphp, configuration 0 Was this answer helpful?

The MultiPHP INI Editor gives you direct control over PHP configuration directives for each domain on your account. While the basic PHP settings can be adjusted in the PHP options, the INI Editor provides access to the full range of PHP configuration values.

Please note: Screens and options may vary slightly depending on your cPanel version and hosting plan.

⚠️ Caution: Incorrect changes here can make your website inaccessible. If you are unsure about any step, please contact our support team before proceeding.

Accessing the MultiPHP INI Editor

  1. Log in to your cPanel account.
  2. In the Software section, click MultiPHP INI Editor.

Basic Mode

The Basic Mode provides a user-friendly interface for the most commonly adjusted settings:

  1. Select the domain from the dropdown.
  2. Adjust the settings using the provided fields and toggles.
  3. Click Apply.

Common settings available in Basic Mode include memory_limit, upload_max_filesize, post_max_size, max_execution_time, max_input_vars, display_errors, and error_reporting.

Editor Mode

The Editor Mode lets you directly edit the raw php.ini directives:

  1. Select the domain from the dropdown.
  2. The current configuration is displayed in a text editor.
  3. Add or modify directives as needed. Each directive goes on its own line:
   memory_limit = 256M
   upload_max_filesize = 64M
   post_max_size = 128M
   max_execution_time = 300
   max_input_vars = 5000
   session.gc_maxlifetime = 1440
   
  1. Click Save.

Settings That Require Editor Mode

Some useful settings not available in Basic Mode include:

| Directive | Description | Example | |-----------|-------------|---------| | session.gc_maxlifetime | Session timeout in seconds | 1440 | | session.cookie_lifetime | Cookie lifetime in seconds | 0 | | date.timezone | Default timezone | Europe/London | | allow_url_fopen | Allow opening remote files | On | | max_file_uploads | Max simultaneous file uploads | 20 | | realpath_cache_size | Cache for file path lookups | 4096K | | opcache.memory_consumption | OPcache memory allocation | 128 |

Tips

  • Changes apply per domain. Different domains can have different PHP configurations.
  • Some directives can only be set at the server level and won't take effect in user-level INI files. If a setting doesn't seem to apply, contact your hosting provider.
  • After making changes, test your website thoroughly. Incorrect PHP settings can cause errors or unexpected behaviour.
  • Create a phpinfo.php file to verify your changes have taken effect (remember to delete it afterwards).

What Next?

Related Articles

knowledgebasedidyoufindanswer