nethubonline
Regular Pleskian
User name: nethubonline
TITLE
Subscriptions become locked for sync if PHP settings are changed
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
CentOS Linux release 7.3.1611, Plesk, Onyx 17.8.11 Update #83 & Plesk Obsidian 18.0.24 Update #83
PROBLEM DESCRIPTION
I found this URL [FIXED BUG] Subscriptions become locked for sync if PHP settings are changed about the problem has been fixed in new update, but I checked it is not fixed completely.
Problem still exists on Plesk 17.8 & Plesk 18 , but some little different results.
Secondly change service plan would raise another problem.
STEPS TO REPRODUCE
Login as "Customer" > Websites & Domains > PHP Settings
Login as "admin" > Subscriptions > example.com > PHP Settings
By command line
Change service plan would raise another problem, I will show you to clear everything and start again:
ACTUAL RESULT
EXPECTED RESULT
ANY ADDITIONAL INFORMATION
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
Subscriptions become locked for sync if PHP settings are changed
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
CentOS Linux release 7.3.1611, Plesk, Onyx 17.8.11 Update #83 & Plesk Obsidian 18.0.24 Update #83
PROBLEM DESCRIPTION
I found this URL [FIXED BUG] Subscriptions become locked for sync if PHP settings are changed about the problem has been fixed in new update, but I checked it is not fixed completely.
Problem still exists on Plesk 17.8 & Plesk 18 , but some little different results.
Secondly change service plan would raise another problem.
STEPS TO REPRODUCE
- fresh install Plesk
plesk bin customer --create example.com -name example.com -passwd Testing1234 -email [email protected]
plesk bin subscription --create example.com -owner example.com -service-plan "Default Domain" -ip 1.2.3.4 -login test -passwd Testing1234
Login as "Customer" > Websites & Domains > PHP Settings
Action | Plesk 17.8 | Plesk 18 |
---|---|---|
Change "PHP version" (don't touch "run PHP as") | Synced | Synced |
Change "run PHP as" (don't touch "PHP version") | Locked | Synced |
Login as "admin" > Subscriptions > example.com > PHP Settings
Action | Plesk 17.8 | Plesk 18 |
---|---|---|
Change "PHP version" (don't touch "run PHP as") | Locked | Synced |
Change "run PHP as" (don't touch "PHP version") | Locked | Synced |
Change "memory_limit" | Locked | Locked |
Change "Additional configuration directives" | Synced | Synced |
By command line
Action | Plesk 17.8 | Plesk 18 |
---|---|---|
plesk bin subscription -u example.com -php_handler_id plesk-php72-fpm | Synced | Synced |
plesk bin subscription -u example.com -php_handler_id plesk-php73-fastcgi | Synced | Synced |
echo 'memory_limit = 123M' > /tmp/php.txt; plesk bin subscription --update-php-settings example.com -settings /tmp/php.txt | Synced | Synced |
echo 'register_long_arrays = On' > /tmp/php.txt; plesk bin subscription --update-php-settings example.com -additional-settings /tmp/php.txt | Synced | Synced |
Change service plan would raise another problem, I will show you to clear everything and start again:
plesk bin subscription --unlock-subscription example.com
plesk bin subscription --sync-subscription example.com
echo 'memory_limit = 123M' > /tmp/php.txt; plesk bin subscription --update-php-settings example.com -settings /tmp/php.txt
echo 'register_long_arrays = On' > /tmp/php.txt; plesk bin subscription --update-php-settings example.com -additional-settings /tmp/php.txt
plesk bin subscription --switch-subscription example.com -service-plan "Unlimited"
Result: Synced, "memory_limit = 123M" still exists but "register_long_arrays = On" disappeared and ineffective
plesk bin subscription --switch-subscription example.com -service-plan "Default Domain"
Result: Synced, but "memory_limit = 123M" and "register_long_arrays = On" disappeared
ACTUAL RESULT
- Customer/admin make changes to PHP settings will lock subscription
- Command line make changes to PHP settings do not lock subscription
- Change service plan for a subscription will clear some/all PHP Settings
EXPECTED RESULT
- Subscription should be syncd no matter how customer/admin make changes to PHP settings
- Change service plan for a subscription should keep all PHP Settings if the subscription is in syncd status
ANY ADDITIONAL INFORMATION
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug