Page tree
Skip to end of metadata
Go to start of metadata

This document is for a previous release of cPanel & WHM. To view our latest documentation, visit our Home page.

For cPanel & WHM 11.46

(Home >> Service Configuration >> PHP Configuration Editor)

Overview

The PHP Configuration Basic Editor allows you to access and edit 11 basic options for your PHP configuration.

Directive List

This table includes a brief description of each directive that is available in the PHP Configuration Basic Editor. After you make your changes, click Save.

DirectiveDescription
upload_max_filesizeDefines the maximum file size for an upload in bytes. Use the character ‘M’ to define the limit in Megabytes. (For example: 2M limits the file size to 2 Megabytes — the default setting.)
include_pathLists a path or paths where your PHP functions will look for files when a script calls certain functions. You can separate the directory paths with a colon (:) in a *nix system or a semicolon (;) in the Windows® environment. (For example: .:/example/path1:/example/path2)
file_uploadsDescribes whether HTTP file uploads are possible for your PHP scripts. Select Off to disallow file uploads or On to allow them. This directive defaults to On.
asp_tagsAllows PHP scripts to use ASP-like tags in addition to the usual tags. This includes the variable-value printing shorthand of <%= $value %>.
memory_limitLimits the amount of memory that scripts can allocate, described in bytes. This aids in preventing poorly written scripts from using too much memory. Use the character ‘M’ to define the limit in Megabytes. (For example: 32M limits the allocation of memory to 32 Megabytes - the default setting.)
register_globals

This defines whether or not your server allows the following variables to be defined as global: Environment, GET, POST, Cookie, and Server. Global variables are accessible at every level of the application. Select Off or On. This directive defaults to Off

Warning:

This is a deprecated feature that, if you enable it, poses serious security risks for your server. We strongly recommend that you leave this directive set to Off.

max_execution_timeDefines, in seconds, the maximum amount of time your server allows a script to run before your server terminates it. This feature prevents excessive CPU usage on your server by poorly written scripts. This directive defaults to 30.
max_input_timeDefines the maximum amount of time, in seconds, your server allows a script to parse input data. This directive defaults to 60.
enable_dl

If you set this directive to On, it allows users to employ the dl function in their scripts, which dynamically loads a PHP extension at runtime. 

Warning:

If you set this directive to On, it poses security risks to your server. We recommend that you turn it Off unless it is absolutely necessary that you enable it.

safe_modeThis feature prevents the execution of a PHP script by a user that does not own the script. For example, if the user cPanel1 owns example.php, your server will not allow a user known by another alias to execute example.php.
session.save_pathDefines the path where your server stores files created by PHP. If you use the default handler, the default value is /tmp.