We have a new documentation site for cPanel & WHM! You can find our new documentation site at docs.cpanel.net.

We will continue to maintain our API documentation on this server.

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.48

(Home >> Software and Services >> PHP Configuration)


This interface displays a set of the most commonly-referenced configuration options for PHP. This is useful, for example, to help you diagnose problems with how your web site handles PHP packages.


You cannot change your server's PHP configuration with the PHP Configuration interface. To change your server's PHP configuration, contact your hosting provider.

PHP directives

The following table contains a brief description of each directive in the PHP Configuration interface.

asp_tagsSpecifies whether your web server allows PHP code to use the  <% and %> tags in addition to the standard <?php and ?> tags. If you turn this option off, a PHP script with ASP tags will not work properly.
file_uploadsSpecifies whether your web server allows PHP scripts to receive files via HTTP.
include_pathLists directories in which the requireincludefopen()file()readfile(), and file_get_contents() functions look for files.
max_execution_timeThe number of seconds that your web server allows a PHP script to run before it terminates the script. This limit ensures that poorly-written scripts do slow down your web server.
max_input_timeThe number of seconds that your web server allows a PHP script to process information that you submit to it, such as file uploads. This limit ensures that overloaded scripts do not slow down your web server.
memory_limitThe maximum number of bytes of memory that a PHP script can use. This limit ensures that poorly-written scripts do not overwhelm your web server's memory. A value of -1 indicates that no memory limit exists.

Registers the $REQUEST array's elements as variables. If a PHP script requires that you set this value to On, your site could become insecure.


This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.


This feature ensures that execute permissions exist for the user who runs a PHP script. For example, if the script changes a file, the user needs the correct permissions to modify the file. 


This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

upload_max_filesizeThe maximum number of bytes that an uploaded file can contain.

When a visitor accesses your website, the web server issues a unique user ID. The web server uses this ID to store information about the user's session, or time spent on your website. The session.save_path directive describes where the system stores that information. PHP allows you to make web content specific to a given visitor and session.


  • If the Value column contains a number, it refers to the number of directories in which the web server stores the information. If your site experiences a lot of traffic, it is easier for the server to save and retrieve the information if the web server distributes the session data among several folders. 
  • The Value column also includes the name of the directory that contains subdirectories of session information.

Select a PHP version

If your hosting provider allows you to select the version of PHP that your website uses, use this section of the interface to make your selection.

To select a PHP version, perform the following steps:

  1. From the menu, select the version of PHP that you wish to use. Select System Default to use the version that your hosting provider selected.
  2. Click Update.