• 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.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • 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