MultiPHP INI Editor

  • September 11, 2017
  • 0 Comments

Use the MultiPHP INI Editor interface to configure your PHP settings.

(Home >> Software >> MultiPHP INI Editor)

Overview

This interface allows you to configure your PHP settings.

MultiPHP INI Editor

Select the location that you wish to configure from the menu. You can edit either the home directory of the user account or the domain's document root. The PHP directives will appear.

The Basic Mode section of this interface loads the following directive values from the php.ini file for your selected domain or home directory. Make your changes to the desired directives and click Apply. The system saves changes to both the php.ini file and the user.ini file and your .htaccess file.

Notes:

  • We strongly recommend that you use the cPanel-provided default values for security purposes.
  • The availability of the following directives depends on your version of PHP. If a directive does not appear in your interface, your version of PHP does not support it.
  • The system only writes a directive to an .ini or .htaccess file if that file supports the directive. Your php.ini, .user.ini, and .htaccess files may not be identical.
  • The interface's default values are the same as those on the php.net website.

The Editor Mode section of this interface loads the contents of the php.ini file for your selected domain, if it exists. If the php.ini file does not exist, the interface loads a blank editor so that you can create your own file. Make your changes to the desired directives and click Save.

The system saves changes to both the php.ini file in the Path section of the interface and the .user.ini file. Changes also save to your .htaccess file. For example, the location of your file may be /home/allthethings/public_html/php.ini. The interface attempts a rudimentary validation of directive names. This does not guarantee that your PHP will function. To reset your PHP settings to the default, delete the domain's or home directory's php.ini file.

Important: If you use the DSO PHP handler, the system will not read your configuration changes if you change your PHP version to a different major PHP version. For example, if you change your PHP version from PHP 5 to PHP 7.

To correct this issue, you must edit and save your PHP configuration again in the interface. The system will then load the .htaccess directives correctly.


How helpful was this article to you?