Tutorials/Tips

How to enable VestaCP commands in your PATH

VestaCP is an open core Web hosting control similar to cPanel. I use it to host several websites on Vultr, mostly from the command line. The server actually runs CentOS 7.

Installing VestaCP gives access to new commands just for managing the system and VestaCP itself from the command line. I found, however, that the commands are not in my PATH, which means having to type absolute paths when using the commands.

The commands, all 371 of them, are in the /usr/local/vesta/bin directory. While attempting to add that directory to my PATH, I found that the directive to accomplish that was already specified in root’s bash_profile file. So why do I always get a “command not found” error when I try to execute the commands using their relative paths?

Related Post:  Disk encryption with Calamares, the Linux installer

The server has been running for about 2 years and it has been upgraded and rebooted more times than I can remember. On a whim, I decided to execute the command given below. It’s the command used to activate a change in the current shell environment without logging out:

And that did the trick, because afterwards, I could execute the commands just by specifying their relative paths. I’m not sure why I had to go through this to get this done, but updating a system on which VestaCP is running has been known to mess a few things up. So if you find yourself in the same situation with VestaCP commands, try what I did. It might just be what the doctor ordered.

Related Post:  Make GRUB the default Boot Manager on an HP 250 G5
VestaCP
VestaCP Web hosting control panel

Subscribe to LinuxBSDos.com

Subscribe to receive the latest articles in your Inbox

Trust me, you'll not be spammed...

Please share:

We Recommend These Vendors and Free Offers

Launch an SSD VPS in Europe, USA, Asia & Australia on Vultr's KVM-based Cloud platform starting at $5:00/month (15 GB SSD, 768 MB of RAM).

Deploy an SSD Cloud server in 55 seconds on DigitalOcean. Built for developers and starting at $5:00/month (20 GB SSD, 512 MB of RAM).

Want to become an expert ethical hacker and penetration tester? Request your free video training course of Online Penetration Testing and Ethical Hacking

Whether you're new to Linux or are a Linux guru, you can learn a lot more about the Linux kernel by requesting your free ebook of Linux Kernel In A Nutshell.


Leave a Comment

Your email address will not be published. Required fields are marked *

*