Page 1 of 1

v- command not found

Posted: Sat Apr 06, 2019 4:38 pm
by clu55ter
Hello all I have vestacp installed on my ubuntu 18.04 bionic beaver.

I can use the control panel but want to start using CLI command line to create new sites and databases.

After I access my server through ssh and try any command starting with v- or sudo v- I get the following error command not found.
v-list-dns-domain: command not found

any help would be appreciated.

Re: v- command not found

Posted: Sat Apr 06, 2019 6:06 pm
by chrisf
Normally this happens because the vesta path is not part of your servers exported PATH.

Try this:

export PATH=$PATH:/usr/local/vesta/bin/

:-)

Re: v- command not found

Posted: Fri May 03, 2019 5:09 pm
by edica
The code works. But if you restart the server, it does not work anymore. :/

Code: Select all

export PATH=$PATH:/usr/local/vesta/bin/

Re: v- command not found

Posted: Fri May 03, 2019 5:43 pm
by dreiggy
edica wrote:
Fri May 03, 2019 5:09 pm
The code works. But if you restart the server, it does not work anymore. :/

Code: Select all

export PATH=$PATH:/usr/local/vesta/bin/
If you want that this left after reboot, then run this:

Code: Select all

echo 'PATH=$PATH:/usr/local/vesta/bin' >> /root/.bash_profile

Re: v- command not found

Posted: Fri May 03, 2019 8:45 pm
by edica
I was using "sudo su" command to log in as root. But it should be "sudo su -", so load the shell.