• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

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