MultiPHP INI Editor for cPanel
Legitimate for variations 82 via the most recent model
Final modified: 2025 Might 19
Searching for this interface?
Overview
This interface means that you can configure file directives for a PHP model. These directives management how that model of PHP behaves – for instance, whether or not it limits scripts’ skills to entry or execute native information. You possibly can configure fundamental directives within the Primary Mode tab of this interface, or add new directives within the Editor Mode tab.
Observe:
WHM customers can view details about the server’s PHP INI settings in WHM’s MultiPHP INI Editor interface (WHM » Residence » Software program » MultiPHP INI Editor).
MultiPHP INI Editor
This editor has two tabs:
- Primary Mode – This tab hundreds directive values from the
php.inifile in your chosen area or total account. - Editor Mode – This tab opens a textual content editor the place you’ll be able to straight edit the
php.inifile in your chosen area or total account.
Primary Mode
To make use of the Primary Mode part of this interface, first choose the php.ini file you need to configure from the Configure PHP INI fundamental settings menu. The menu shows a listing of every out there area title, together with the account’s Residence Listing. To use adjustments to all web sites you handle, choose Residence Listing. To use adjustments to a particular area, choose its area title. Your PHP directives will seem.
For safety functions, we strongly suggest that you simply use the cPanel-provided default values.
The provision of directives will depend on your model of PHP. If a directive doesn’t seem in your interface, your model of PHP does not assist it.
Make your adjustments to the specified directives and click on Apply. The system saves adjustments to the php.ini file, the consumer.ini file, and your .htaccess file if these information helps the directive. Your php.ini, .consumer.ini, and .htaccess information might not be similar. For extra details about which information assist which directives, learn PHP’s documentation.
Editor Mode
To make use of the Editor Mode part of this interface, first choose the php.ini file you need to configure from the Edit PHP INI settings menu. The menu shows a listing of every out there area’s area title, together with the account’s Residence Listing. To use adjustments to all web sites you handle, choose Residence Listing. To use adjustments to a particular area, choose that area’s area title. Your PHP directives will seem. If the php.ini file doesn’t exist, the interface hundreds a clean editor so that you could create your personal file.
To be taught extra about how PHP handles the php.ini file, learn PHP’s The configuration file documentation.
Warning:
- It’s essential to train excessive warning while you make adjustments on this interface. Errors may end in non-functional PHP scripts. Solely superior customers ought to use this interface.
- You can’t use any of the next phrases as directives:
null,sure,no,true,false,on,off, andnone. Directives additionally can’t comprise any of the next particular characters:?,{},|,&,~,!,[,(),^, or". - To learn more about what directives are available for your PHP version and how to set them, search the php.net documentation.
Make your changes to the desired directives and click Save.
The system saves changes to the php.ini file in the Path section of the interface, the .user.ini file, and the .htaccess file if that file supports the directive. Your php.ini, .user.ini, and .htaccess files may not be identical. For more information about which files support which directives, read PHP’s Where a configuration setting may be set documentation.
The interface attempts a rudimentary validation of directive names. This does not guarantee that your PHP configuration will function. To reset your PHP settings to default values, delete the domain’s or home directory’s php.ini file.
The DSO PHP handler and PHP major versions
Note:
cPanel & WHM does not support the DSO PHP handler with PHP 8.0 and higher.
If your server administrator enables the DSO PHP handler and you change your PHP version to a different major PHP version, the system will not read your configuration changes.
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.
The LSAPI module and the htaccess file
If your server administrator includes the LSAPI module in your PHP configuration, the system also adds an LSAPI section to your .htaccess file. This section might resemble the following example:
|
|
Leave a Reply