For cPanel & WHM version 74

Skip to end of metadata
Go to start of metadata

(cPanel >> 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:

  • This interface only appears on servers that run EasyApache 3.
  • You cannot change your server's PHP configuration with this interface. To change your server's PHP configuration, contact your hosting provider.

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.

PHP directives

The following table contains a brief description of each directive in this interface:

In This Document

Related Documentation

For Hosting Providers

DirectiveDescription
asp_tagsWhether your web server allows PHP code to use the  <% and %> tags in addition to the standard <?php and ?> tags. If you disable this option, PHP scripts with ASP tags will not work properly.
file_uploadsWhether your web server allows PHP scripts to receive files via HTTP.
include_pathDirectories that the requireincludefopen()file()readfile(), and file_get_contents() functions query 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 not 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

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

Warning:

This feature was deprecated in PHP 5.3.0 and removed in PHP 5.4.0.

safe_mode

Whether to require execute permissions 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 was deprecated in PHP 5.3.0 and removed in PHP 5.4.0.

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

The location in which the system stores visitors' unique user IDs. The web server uses this ID to store information about the user's session, or time spent on your website. 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 heavy 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.