Plesk provides full support for the PHP scripting language, including
support for multiple PHP versions and handler types out of the box. This
topic explains how Plesk administrator can make PHP available to their
customers and control what PHP settings their customers can manage.
For a domain to use PHP, it has to be enabled on the subscription level.
If the subscription is based on a service plan, it makes sense to enable
PHP and configure the PHP settings in the service plan. For example, you
can have a ‘basic’ plan, which would give subscribers no control over
PHP settings, and ‘advanced’ one, which would give some degree of
control, and an ‘expert’ one, which would allow subscribers the maximum
ability to customize the PHP settings.
When setting up a service plan or a subscription, PHP-related tasks
include the following:
- Configuring the PHP settings.
- Setting up permissions. These will define what PHP settings
subscribers can manage.
Multiple PHP Versions
Most PHP versions are not backward-compatible. For example, code written
in PHP 5.x might not execute correctly when being run using a PHP 4.x
interpreter. For additional flexibility, Plesk ships with a number of
PHP versions that can be installed via the Plesk
interface. Customers granted the PHP version and handler
management permission are able to select the PHP handler and version
independently for each of their websites.
Configuring the PHP settings
To configure the PHP settings for a service plan, go to Service
Plans > click either Add a Plan or the name of an existing plan
whose PHP settings you want to change > PHP Settings. To configure
the PHP settings for a subscription, go to Subscriptions > click
either Add Subscription or the name of an existing subscription
whose PHP settings you want to change and then Customize > PHP
Settings. On this page you are able to do the following:
-
Define the PHP version and handler type to use. This setting is only
available on the service plan level. -
Configure a range of predefined PHP settings. These settings are
mostly performance and security-related, but some of them may affect
the website functionality. Click the icon next to…