Knowledgebase
PHP Configuration Print this Article
Overview
If you encounter problems with the way your server handles PHP packages, it may be helpful to view information about the PHP configuration. To do this, navigate to theSoftware/Services section and click PHP Configuration. This interface displays some of the most commonly referenced configuration options.
Note: You cannot use this interface to change your server's PHP configuration. To change the way PHP is configured on your server, contact your web host.
PHP Directives
The following table contains a brief description of each directive in the PHP Configuration interface.
Directive | Description |
---|---|
asp_tags | Specifies whether your server allows PHP code to include the tags <% and %> instead of the standard <?php and ?> tags. If this option is turned off, a PHP script with ASP tags will not work properly. |
file_uploads | Specifies whether your server will allow PHP scripts to receive files via HTTP (i.e., the web). |
include_path | Specifies a list of directories in which the require , include , fopen() , file() , readfile() , and file_get_contents() functions look for files. |
max_execution_time | The number of seconds your web server allows a PHP script to run before the script is terminated. This limit prevents the slow down of your server by poorly written scripts. |
max_input_time | The number of seconds your web server allows a PHP script to process information input to it, such as file uploads. This limit prevents the slow down of your server by an overloaded script. |
memory_limit | The maximum number of bytes of memory that a PHP script can use. This limit prevents the occupation of your server's available memory by poorly written scripts. When this field is set to -1 , there is no memory limit. |
register_globals | Warning: This is an outdated feature that should be set to Off. The use of a PHP script that requires this field to be turned on could make your site insecure. Important: 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 the user who runs the PHP script has permission to perform all the tasks the script is written to do. For example, if the script is designed to change a file, the user will need the correct permissions to modify the file. Important: This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. |
upload_max_filesize | The 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 the user ID to store information about the user's session, or time spent on your website. The session.save_path directive describes where that information is stored. (PHP allows you to make web content specific to a given visitor and session.) If the Value column has a number in it, it refers to the number of directories in which the web server will store the information. If your site has 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 web host allows you to select the version of PHP that your website will use, you may select it from this interface.
To select a PHP version:
- From the menu, select the version of PHP you wish to use. You may select System Default to use the version your web host has chosen.
- Click Update to apply the selected version.
Was this answer helpful?
Related Articles
CGI Center
Simple CGI Wrapper CGI scripts are pieces of software that can do many useful things for your...
Simple CGI Wrapper CGI scripts are pieces of software that can do many useful things for your...
cPanel PHP
As of cPanel & WHM version 11.36, we ship PHP 5.3 and its modules as a set of RPMs. This...
As of cPanel & WHM version 11.36, we ship PHP 5.3 and its modules as a set of RPMs. This...
Deploying a Ruby on Rails Environment
Overview: This interface allows you to create and deploy a Ruby on Rails® application....
Overview: This interface allows you to create and deploy a Ruby on Rails® application....
Optimize Website
Overview: This interface allows you to configure your server to automatically compress specified...
Overview: This interface allows you to configure your server to automatically compress specified...
Perl Modules
Overview: Perl modules are software components in the Perl language. This interface allows you...
Overview: Perl modules are software components in the Perl language. This interface allows you...