• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved Disabling an extension from one custom PHP handler will disable the same extension on all others, too

KonstantinosP

New Pleskian
TITLE

Issue in settings for custom PHP handlers

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Ubuntu 22.04.2 LTS (VPS/KVM), Linux 5.15.0-76-generic, x86-64

PROBLEM DESCRIPTION

On my servers i usually install multiple custom PHP versions from ppa ondrej/php repository and i register them in Plesk like this:
Bash:
/usr/local/psa/bin/php_handler --add -id custom-php82-fpm -displayname 8.2-custom -path /usr/sbin/php-fpm8.2 -clipath /usr/bin/php8.2 -phpini /etc/php/8.2/fpm/php.ini -type fpm -service php8.2-fpm -poold /etc/php/8.2/fpm/pool.d

Then i disable some extensions i don't need in production (eg: xdebug) from the "Settings for X.X-custom FPM application" screen. When i turn off one switch, the xdebug for example, it will turn off xdebug for all the custom PHP handlers.

STEPS TO REPRODUCE

Install a couple of custom PHP versions:

Bash:
apt install software-properties-common
add-apt-repository ppa:ondrej/php
apt update

Bash:
apt install php8.1-fpm php8.1-cli php8.1-bcmath php8.1-bz2 php8.1-curl php8.1-dba php8.1-enchant php8.1-gd php8.1-igbinary php8.1-imagick php8.1-imap php8.1-intl php8.1-ldap php8.1-mbstring php8.1-mcrypt php8.1-mysql php8.1-odbc php8.1-opcache php8.1-pgsql php8.1-pspell php8.1-readline php8.1-redis php8.1-snmp php8.1-soap php8.1-sqlite3 php8.1-tidy php8.1-xdebug php8.1-xml php8.1-xmlrpc php8.1-zip

/usr/local/psa/bin/php_handler --add -id custom-php81-fpm -displayname 8.1-custom -path /usr/sbin/php-fpm8.1 -clipath /usr/bin/php8.1 -phpini /etc/php/8.1/fpm/php.ini -type fpm -service php8.1-fpm -poold /etc/php/8.1/fpm/pool.d

Bash:
apt install php8.2-fpm php8.2-cli php8.2-bcmath php8.2-bz2 php8.2-curl php8.2-dba php8.2-enchant php8.2-gd php8.2-igbinary php8.2-imagick php8.2-imap php8.2-intl php8.2-ldap php8.2-mbstring php8.2-mcrypt php8.2-mysql php8.2-odbc php8.2-opcache php8.2-pgsql php8.2-pspell php8.2-readline php8.2-redis php8.2-snmp php8.2-soap php8.2-sqlite3 php8.2-tidy php8.2-xdebug php8.2-xml php8.2-xmlrpc php8.2-zip

/usr/local/psa/bin/php_handler --add -id custom-php82-fpm -displayname 8.2-custom -path /usr/sbin/php-fpm8.2 -clipath /usr/bin/php8.2 -phpini /etc/php/8.2/fpm/php.ini -type fpm -service php8.2-fpm -poold /etc/php/8.2/fpm/pool.d

Then try to disable one extension for PHP "8.1-custom".

ACTUAL RESULT

The extension you disabled for PHP "8.1-custom" will be also disabled for PHP "8.2-custom" or any other custom PHP handlers you have.

EXPECTED RESULT

The extension should be disabled only for the one PHP handler. PHP "8.1-custom" for our example.

ANY ADDITIONAL INFORMATION

I believe the issue appeared when the checkboxes in the settings page were replaced by switches (maybe 6 months ago), but now i decided to open a report it because it became frustrating.

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Back
Top