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

For cPanel & WHM version 60

(Home >> Software >> PHP)

Overview

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.

Note:

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.

DirectiveDescription
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.
register_globals

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.

Warnings

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

safe_mode

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. 

Warning:

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.
session.save_path

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.

Notes:

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