MultiPHP INI Editor

MultiPHP INI Editor

Important:

cPanel's MultiPHP INI Editor interface only exists on systems that run EasyApache 4 and use the Paper Lantern theme.

Overview

This interface allows you to configure your PHP settings. 

Note:

WHM users can view information about the server's PHP INI settings in WHM’s MultiPHP INI Editor for WHM interface (Home >> Software >> MultiPHP INI Editor).

MultiPHP INI Editor

Select a tab to view more information about that section of the  MultiPHP INI Editor  interface. 

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.

Notes:

  • 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 default values listed in the interface mirror those on the php.net website. 

  • We strongly recommend that you use the cPanel-provided default values for security purposes.

PHP directive
Description
cPanel default
PHP default
allow_url_fopen Select whether PHP scripts can use URL-aware fopen wrappers. Disabled Enabled
allow_url_include Select whether PHP scripts can use URL-aware fopen wrappers with the following functions: include()include_once()require(), andrequire_once(). 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, <%= $value %>).

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 dl function. This function dynamically loads a PHP extension at runtime. 

Warning:

If you set this directive to Enabled, it poses security risks to your server. We strongly recommend that you select Disabled unless you absolutely require the dl function.

 

Disabled Enabled
file_uploads Select whether your PHP scripts can upload HTTP files. Enabled Enabled
include_path

Enter the paths where PHP functions search for files when a script calls certain functions.

Note:

Separate the directory paths with a colon (:) in a Unix environment, or a semicolon (;) in a Windows® environment.

.;/path/to/php/pear .;/path/to/php/pear

magic_quotes_gpc

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. 

Note:

Use the character M to define the limit in Megabytes.

32M 128M

register_globals

Select whether GET or POST inout converts into variables that the script can use. Disabled Disabled

safe_mode

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.

Note:

Use the character M to define the limit in Megabytes.

2M 2M

Additional documentation

PHP Security Concepts — This document explains some of our recommendations to help you improve PHP's security on your server.

 
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

PHP

PHP This interface displays a set of the most commonly-referenced configuration...

PHP PEAR Packages

PHP PEAR Packages PHP PEAR packages are software components that are written in the PHP...

Perl Modules

Perl Modules Perl modules are software components in the Perl language. This interface...

RubyGems

RubyGems RubyGems is a package manager for the Ruby programming language. It...

Ruby on Rails

Ruby on Rails This interface allows you to create and deploy a Ruby on Rails®...