List all installed Plesk PHP versions
which php versions does plesk have | plesk php binary path | php versions installed on server | php | plesk | versionfor p in /opt/plesk/php/*/bin/php; do echo "$p: $($p -r 'echo PHP_VERSION;')"; doneLoops over all PHP installations under /opt/plesk/php and prints path and exact version. Plesk installs its own PHP versions there, independent of Debian’s PHP. Useful for finding the right interpreter for cron jobs or Composer.
Note: Which version a subscription uses is shown in Plesk under the PHP settings of the domain.
Open question before approval: Prüfen, ob zusätzlich plesk bin php_handler --list als Variante im Hinweis genannt werden soll und auf Obsidian die erwartete Ausgabe liefert.
Also searched as
- which php versions does plesk have
- plesk php binary path
- php versions installed on server