Cannot change PHP version for a domain in Plesk 17.5: Permission denied

Created:

2017-04-20 10:01:55 UTC

Modified:

2017-08-18 03:09:05 UTC

8

Was this article helpful?


Have more questions?

Submit a request

Cannot change PHP version for a domain in Plesk 17.5: Permission denied

Applicable to:

  • Plesk Onyx 17.5 for Linux

Note: This article has the reference to the issue with the fix available:

  • #PPPM-6030 "Under certain circumstances, trying to change the PHP settings or version resulted in an error."
    Fixed in:
Please consider updating your server:

Symptoms

When trying to change PHP version for a domain, it fails with a Permission denied error, or the following one:

{"redirect":"\/web\/php-settings\/id\/1","status":"error","statusMessages":[]}

PHP handlers list is empty or not displayed:

The PHP version can be updated via CLI without any errors, for example:

# /usr/local/psa/bin/subscription -u example.com -php_handler_id plesk-php70-fastcgi

Cause

This is Plesk bug with ID #PPPM-6030 that is planned to be fixed in future Plesk updates.

Resolution

As a workaround apply hot fix from the attachments.

It should be placed in to /usr/local/psa/admin/plib/Domain directory.

Note: Make a backup of existing PhpSettings.php before replacing:

# cp /usr/local/psa/admin/plib/Domain/PhpSettings.php{,.backup}

Another workaround:

1. Install and enable Nginx according to the instructions from article #213944825 .

2. Go to Subscriptions > example.com > Websites & Domains > Apache & nginx Settings and enable nginx proxy mode.

3. Disable Reverse Proxy Server (nginx) on Tools & Settings > Services Management screen.

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.