Plesk

How to customize PHP settings in Plesk

Question

How to change PHP settings in Plesk?

Answer

 

Customizing PHP settings for a domain

 

  1. Log in to Plesk.

  2. Go to Domains > example.com > PHP Settings.

    Note: To allow Plesk resellers/customers customize PHP settings for their domains, visit this KB article.

  3. Adjust PHP settings according to your needs and apply the changes. Click on a value field to set a custom value.


 

Customizing PHP settings for all domains assigned to a specific service plan

 

  1. Log in to Plesk.

  2. Go to Service Plans > plan_name > PHP Settings.

  3. Adjust PHP settings according to your needs and click Update & Sync.

    Note: New settings will not be applied to existing subscriptions, if:

    - A subscription is locked from syncing with its service plan.
    - Permissions settings allow PHP management in this service plan. To revoke them, visit this KB article.

    PHP Settings" width="355" height="200">

 

Customizing PHP settings for PHP globally

 

  1. Log in to Plesk.

  2. Go to Tools & Settings > PHP Settings > click on a required PHP version (any application) > switch to the php.ini tab.

  3. Adjust values for existing PHP parameters or specify your own. Once done, apply the changes.

    Note: Customized PHP settings configured on a domain level override directives in php.ini file. To make a domain use values from global PHP configuration, in domain's PHP settings click Reset To Default next to PHP parameters.

 

In the Plesk PHP Settings menu, the following parameters can be adjusted per domain/service plan:

 

Additional PHP parameters or custom values can be specified in the Additional configuration directives field. This field is available for Plesk administrators only.

Use these units to define digital memory capacity: