How to reset your Lost VestaCP admin password

In this post I will show you how to reset your Lost VestaCP admin password.

There are two methods to reset password for “admin” user in VestaCP. “admin” user in VestaCP is registered as a SSH user and all other VestaCP accounts are registered in the same way hence it makes easy for you to reset the admin password if you have knowledge of basic Linux commands.

METHOD1:
The following command is recommended by VestaCP for resetting admin password. Login to your server via SSH & execute the one liner as shown below

v-change-user-password admin secret

Here “secret” is the new password we have set, You can provide a stronger password here.

METHOD2:
This method uses standard Linux passwd command to reset the password. Just execute the passwd command & provide your secure password at the Prompt as shown below & you’re done.

admin-vesta-reset

3 steps to modify default port of VestaCP

Today we will see How to modify default port of VestaCP through SSH console. By default VestaCP runs on HTTP port 8083.

Since VestaCP doesn’t have any specific Captcha feature on it’s login page, As a security best practice it’s recommended to change the default port of VestaCP to a non-standard one.

VestaCP runs as a HTTP service on Nginx web server, If you are familiar with SSH & any editors like vi, vim,nano etc, you can easily modify it.

Following are the steps required to change the VestaCP port.

 

STEP 1: Login to your server via SSH & open Vesta’s nginx configuration file. I am using vi editor for this.

vi /usr/local/vesta/nginx/conf/nginx.conf

STEP 2:  Scroll down to Line number 80 & locate the statement “listen”, as highlighed below.

11

replace the default port from 8083 to anything which can be harder to guess. Save the file & exit.

STEP 3: Finally restart the Vesta nginx server for changes to take effect. You need to also make sure that the new port is open in the Firewall.

12

Great!. Now you can access your VestaCP on a custom port by acessing https://IP:PORT/.

Let me know if you have any questions on this.

 

 

How to install Comodo SSL on VestaCP

In this article i will show you how to install Comodo’s PositiveSSL certificate on VestaCP.

VestaCP which is a free to use & open source control panel and it’s becoming popular due to it’s ease of use & nice features. Unlike webmin, vestaCP provides you an easy web GUI to install SSL certificates for websites as it’s there in Cpanel.

The SSL certificate can be bought at cheap price from https://www.ssls.com/ssl-certificates/comodo-positivessl

 

SSL certificate providers require a valid CSR file to issue the Certificate.You can use this online tool https://csrgenerator.com/ to generate the CSR & private key files.

13

Save the generated CSR & private key in seperate files as we need this during installation.

 

STEP 1: Open your browser & login to your Vesta Control Panel using https://IP-ADDRESS:8083/

 

1

STEP 2: Now you will see multiple tabs. Click on Tab “WEB” & after clicking on this you will see a plus symbol icon
Clicking on this icon will open up a page to add your domain details.

2

STEP 3: Here we will be providing details of our domain name & SSL certificate details.
Domain: Provide the name of your domain
IP Address: Select the correct IP address of your server
DNS Support: Check this option if you are managing DNS records on VestaCP
Mail Support: Check this option if you are managing email accounts on VestaCP

clicking on “ADVANCED OPTIONS” will open up settings where we can configure SSL, FTP & some other features

Alias: Provide any additional domain names for this site. Example : http://www.serverliving.com
Proxy Support: This option should be checked
SSL Support: Enable this option & install your SSL certificate as below

SSL Home: You can leave it as default public_html or it needs to be changed to public_shtml if you want to serve HTTPS site from this directory.
SSL Certificate: Paste the contents from www_serverliving_com.crt
SSL Key: Paste the private key which you generated using https://csrgenerator.com/

SSL Certificate Authority/Intermediate:
Combine the following certificates into one file using text editor & paste the contents in this section.
(Maintain the correct order as shown below)

COMODORSADomainValidationSecureServerCA.crt
COMODORSAAddTrustCA.crt
AddTrustExternalCARoot.crt

Once all the entries are added. Save the configuration by clicking “SAVE” button.

14

If the installation is successfull, you should see message saying “Domain has been added successfully”

Let me know if you have any trouble setting up SSL.