Depending on your permissions, here you can specify or just view the unique PHP configuration for this website (apart from the other sites in your subscription). Custom PHP configuration might be useful when you want to limit the system resources consumption by PHP scripts or meet the requirements of a certain web app. When you set a parameter to Default value, PHP will use the parameter's value from the server-wide PHP configuration.
PHP is one of the most popular scripting languages for creating dynamic web pages. The majority of today's websites and web applications are based on PHP scripts. This is why site administrators should clearly understand how they can control the execution of PHP scripts.
How PHP scripts are executed for a certain website is fully defined by two aspects: PHP handler and PHP settings for the site. You can set up these parameters for a certain website in the Control Panel as described below.
PHP behavior is defined by a number of configuration settings. These settings specify various script execution aspects, like performance (for example, the amount of memory a script can use), security (for example, access to file system and services), and so on. You may adjust these settings for a number of reasons:
- Preventing a memory leak or server hang-up by poorly written scripts.
- Protecting data from malicious scripts.
- Meeting the requirements of a certain web app.
- Testing own scripts and other.
PHP settings are located in the Control Panel, Websites & Domains > select a website > PHP Settings. For convenience, all PHP settings are divided into two groups:
- Performance settings.
These settings define how scripts work with system resources. For example: Use the memory_limit parameter to limit the amount of memory for a script to prevent a memory leak. In addition, you can prevent scripts from tying up the server by limiting the maximum time scripts are allowed to run using max_execution_time.
- Common settings.
This group contains other commonly used PHP settings. Generally, these are: Security settings (for example, the PHP safe mode toggle or the permission to register global variables), error reporting settings (for example, the directive to log errors), and others.
It is possible to use three placeholders in parameter values:
- {DOCROOT} for the document root directory of a domain that gets custom PHP configuration.
- {WEBSPACEROOT} for the root directory of a subscription (webspace).
- {TMP} for the directory which stores temporary files.
Note: Default values of PHP settings in Panel differ from the ones suggested by the official PHP documentation at http://php.net/manual/en/ini.list.php.
Note: Custom PHP configuration of a website acts as a preset for all subdomains of this site. You can perform further per-subdomain PHP configuration in the same way as for the websites.
PHP Version
Panel supports different versions of PHP. For each handler, one or more PHP versions can be available. The list of available versions is defined by your hosting provider and available to you in the same location where you select the PHP handler: Websites & Domains tab > <domain_name> > Edit.
Note: Always use PHP 5.x except the cases when you need PHP 4.x to host some old PHP apps.
Please follow the following steps:
1) Login to Plesk control panel.

2) Click on Websites & Domains.

3) Click on Domain Name as marked in RED.

4) Click on Website PHP Settings.

5) Manage PHP Memory, etc as below:

Peformance settings
memory_limit
max_execution_time
max_input_time
post_max_size
upload_max_filesize
Common Settings
safe_mode
safe_mode_include_dir
safe_mode_exec_dir
include_path
session.save_path
mail.force_extra_parameters
register_globals
open_basedir
error_reporting
display_errors
log_errors
allow_url_fopen
file_uploads
short_open_tag
magix_quotes_gpc
6) Click ok.

Information: The settings were successfully updated.
