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 account's home directory or the domain's document root. The PHP directives will appear.
Select a tab to view more information about that section of the MultiPHP INI Editor interface.
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.
Important:
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. 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.
PHP directive
|
Description
|
cPanel default
|
PHP default
|
---|---|---|---|
allow_url_fopen |
Select whether PHP scripts can use URL-aware
|
Disabled | Enabled |
allow_url_include |
Select whether PHP scripts can use URL-aware
|
Disabled | Disabled |
asp_tags |
Select whether PHP scripts can use ASP-like tags in addition to PHP tags. Note: This includes variable-value printing shorthand (for example, |
Disabled | Disabled |
display_errors | Select whether PHP displays errors as output or hides them from the user. | Disabled | Enabled |
enable_dl |
Select whether scripts can call the
|
Disabled | Enabled |
file_uploads |
Select whether your PHP scripts can upload HTTP files.
|
Enabled | Enabled |
Select whether PHP automatically escapes certain characters with a backslash (\ ). |
Enabled | Enabled | |
max_execution_time | Enter the maximum amount of time, in seconds, that your server allows a script to run before your server terminates it. This setting limits the amount of memory that poorly-written scripts may use. | 30 |
30 |
max_input_time | Enter the maximum amount of time, in seconds, that your server allows a script to parse input data. | 60 |
-1 |
max_input_vars | Enter the maximum number of input variables per request. Use this directive to deter Denial of Service (DoS) attacks that use hash collisions on input variable names. | 1000 |
1000 |
memory_limit |
Enter the maximum amount of memory that scripts can allocate, in bytes. This setting helps to prevent poorly-written scripts that may use too much memory. cPanel & WHM sets the default value based on the system's memory at the time of install.
|
cPanel & WHM adjusts this setting at the time of install, based on system memory:
|
128M |
post_max_size |
Enter the maximum size of post data that the system allows, in bytes. This setting affects file uploads. Set this value to |
8M |
8M |
Select whether GET or POST input converts into variables that the script can use. | Disabled | Disabled | |
Select whether to enable safe mode. Safe mode increases security for PHP scripts and enables user, group, and environment checks and controls.
|
Disabled | Disabled | |
session.save_path | Enter the directory in which your server stores the files that PHP creates. | NULL |
NULL |
upload_max_filesize |
Enter the maximum file size for an upload, in bytes.
|
2M |
2M |
zlib.output_compression | Select whether to transparently compress pages when the browser sends an Accept-Encoding: gzip or deflate header. |
Disabled | Disabled |
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. The PHP directives will appear.
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. The system also saves these changes to your .htaccess
file. For example, the location of your file may be the /home/allthethings/public_html/php.ini
file. 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.