• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Issue (/sbin:/bin:/usr/sbin:/usr/bin) where is /usr/local/bin

dj ramc

Basic Pleskian
Server operating system version
AlmaLinux 8.10 (Cerulean Leopard)
Plesk version and microupdate number
Plesk Obsidian v18.0.66_build1800241206.15 os_RedHat el8
Hi Everyone,

i dont have access to /usr/local/bin when using sudo -u domain.com

sudo -u domain.com which pm2
which: no pm2 in (/sbin:/bin:/usr/sbin:/usr/bin)

but when i run sudo -u domain.com -i
which pm2 works
with output
/usr/local/bin/pm2

ls -l /usr/local/bin/pm2
lrwxrwxrwx 1 root root 31 Sep 5 01:09 /usr/local/bin/pm2 -> ../lib/node_modules/pm2/bin/pm2
 
Hi,

Export the required path in $PATH
Edit ~/.profile and add:
Code:
export PATH=/usr/local/bin:$PATH

The same approach can be used to set the desired PHP version in the CLI.
 
Back
Top