• 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.

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