PHP Configuration Editor

PHP Configuration Edtior

This interface allows you to configure your PHP settings. PHP is a scripting language that generates web pages.

Note:

cPanel users can view information about the server's PHP configuration in cPanel’s PHP interface (Home >> Software >> PHP).

  Basic Mode

Make your changes to the following directives and click Save.

Section
Directive
Description
Default
Core 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 %>) . 

Off
Core  file_uploads Select whether your PHP scripts can upload HTTP files. On
Core include_path

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

Note:

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

.:/usr/lib/php:/usr/local/lib/php
Core 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
Core 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
Options & Information 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 On, it poses security risks to your server. We strongly recommend that you select Off unless the dl function is absolutely necessary.

Off
Options & Information 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
Options & Information max_input_time Enter the maximum amount of time, in seconds, that your server allows a script to parse input data. 60
Options & Information 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
Session Handling session.save_path Enter the directory in which your server stores the files that PHP creates. /tmp


Advanced Mode

Warning:

Exercise extreme caution when you change any of these values; errors could result in non-functional PHP scripts. This section of the interface is for advanced users only.

The Advanced Mode section of this interface includes a large number of PHP directives. Make your changes to the desired directives and click Save.

For more information about a directive, search the php.net documentation.



  • 0 utilizatori au considerat informația utilă
Răspunsul a fost util?

Articole similare

Apache Configuration

Apache Configuration This collection of features allows you to configure Apache. Apache...

Bandmin Password

Bandmin Password Bandmin is a set of Perl scripts that monitor and log bandwidth usage by IP...

cPanel Log Rotation Configuration

cPanel Log Rotation Configuration This interface allows you to select cPanel & WHM log files...

cPanel Web Disk Configuration

cPanel Web Disk Configuration The system uses cipher suites to negotiate security settings for...

Exim Configuration Manager

Exim Configuration Manager Use the features in the Exim Configuration Manager interface to...