MultiPHP INI Editor for cPanel
Valid for versions 82 through the latest version
Version:
82
Last modified: May 29, 2024
Overview
This interface allows you to configure your PHP settings.
WHM users can view information about the server’s PHP INI settings in WHM’s MultiPHP INI Editor interface (WHM » Home » Software » MultiPHP INI Editor).
MultiPHP INI Editor
The menu displays a list of available domain document roots, or you may choose the account Home Directory. Select the location that you wish to configure from the menu. If you want to apply changes to any website under this cPanel user, edit the home directory. If you’re going to apply changes only to a specific domain, edit the document root instead. The PHP directives will appear after selecting.
Basic Mode
The Basic Mode section of this interface loads 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 the php.ini file, the user.ini file, and your .htaccess file.
If you use the DSO PHP handler and you change your PHP version to a different major PHP version, the system will not read your configuration changes. cPanel & WHM does not support the DSO PHP handler with PHP 8.0 and higher.
For example, if you change your PHP version from PHP 5 to PHP 7, the system will not read your configuration changes. 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.
- For security purposes, we strongly recommend that you use the cPanel-provided default values.
- The availability of 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
.inior.htaccessfile if that file supports the directive. Yourphp.ini,.user.ini, and.htaccessfiles may not be identical. For more information about which files support which directives, read PHP’s documentation. - To ensure compatibility with the LSAPI module, the system also adds an LSAPI section to your
.htaccessfile. This section might resemble the following example:
|
|
Editor Mode
Select the location that you wish to configure from the menu. You can edit either the user account’s home directory or the domain’s document root. If you want changes made to reflect on any website under this cPanel user, edit the home directory. If you want changes to only apply to a specific domain, edit the domain’s document root instead. The PHP directives will appear after selecting.
- You must exercise extreme caution when you make changes in this interface. Errors could result in non-functional PHP scripts. Only advanced users should use this interface.
- We restrict the following words and you cannot use them as directives:
null,yes,no,true,false,on,off, andnone. Directives also cannot contain any the following special characters:?{}|&~