• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Bug while applying custom PHP configuration

ThomasR

Basic Pleskian
Hi,

It looks like there is a bug in Plesk 11.5. If we change the custom PHP configuration for a service plan it is not applied to synchronised subscriptions. We got this both while using the CLI as within Plesk's web interface.

---------------------------------------------------------------
PRODUCT, VERSION, MICROUPDATE, OPERATING SYSTEM, ARCHITECTURE

Parallels Plesk Panel 11.5.30 Update #37 CentOS 6.5 (Final) (64-bit)
This is a container running on Parallels Virtuozzo 4.7.0

PROBLEM DESCRIPTION

After customizing the open_basedir setting of a service plan this change is not applied to the synchronised subscriptions (tested using CLI and through web interface).

STEPS TO REPRODUCE
  1. Get the current PHP settings:
    Code:
    [B]# /usr/local/psa/bin/service_plan --show-php-settings MyServicePlan[/B]
    General settings:
    safe_mode = off
    [B]open_basedir = {WEBSPACEROOT}{/}{:}{TMP}{/}[/B]
    Performance settings:
    Additional directivies:
  2. Create a file to set a custom value of the open_basedir setting in PHP:
    Code:
    [B]# vim /tmp/customphpsettings[/B]
    open_basedir = {WEBSPACEROOT}{/}{:}{TMP}{/}{:}{/}usr{/}share{/}pear{/}
  3. Apply this setting to the service plan:
    Code:
    [B]# /usr/local/psa/bin/service_plan --update-php-settings MyServicePlan -settings /tmp/customphpsettings[/B]
  4. Check the new PHP setting:
    Code:
    [B]# /usr/local/psa/bin/service_plan --show-php-settings MyServicePlan[/B]
    General settings:
    safe_mode = off
    [B]open_basedir = {WEBSPACEROOT}{/}{:}{TMP}{/}{:}{/}usr{/}share{/}pear{/}[/B]
    Performance settings:
    Additional directivies:
  5. Check a synchronised subscription using this service plan: the old setting is still used:
    Code:
    [B]# cat /var/www/vhosts/system/[I]DOMAIN.TLD[/I]/etc/php.ini | grep "open_basedir"[/B]
    open_basedir = "/var/www/vhosts/[I]DOMAIN.TLD[/I]/:/tmp/"

ACTUAL RESULT

The old/default open_basedir setting.

EXPECTED RESULT

The newly/changed open_basedir setting.

ANY ADDITIONAL INFORMATION

This problem also occurs while changing the open_basedir setting of a service plan using Plesk's web interface. Individual PHP configuration for a subscription works, but is unwanted as this unlocks the subscription from its service plan.
 
What sort of output

# /usr/local/psa/bin/subscription_settings --show-php-settings domain.com

after subscription synchronization?
 
What sort of output

# /usr/local/psa/bin/subscription_settings --show-php-settings domain.com

after subscription synchronization?
It shows the original setting, so (synchronised) subscriptions are not updated:
Code:
[B]# /usr/local/psa/bin/subscription_settings --show-php-settings [I]DOMAIN.TLD[/I][/B]
General settings:
safe_mode = off
open_basedir = {WEBSPACEROOT}{/}{:}{TMP}{/}
Performance settings:
Additional directivies:
Even changing the service plan of a synchronised subscription (from "plan A" to "plan B" and back to "plan A") doesn't activate the new setting.

For your interest, this is the output of a subscription information check:
Code:
# /usr/local/psa/bin/subscription -i [I]DOMAIN.TLD[/I]
[...]
Subscription Information
==============================
The domain is subscribed to the service plan "MyServicePlan" of Provider.
The subscription is not locked for syncing.


SUCCESS: Gathering information for '[I]DOMAIN.TLD[/I]' completed.
 
Thank you for your report. I have submitted it to developers (PPPM-1519 for your reference)
 
Back
Top