How to add a (website) domain to VestaCP

Updated 1 year ago by Oleg

This article describes the procedure for hosting a site on a server with the VestaCP panel installed. At the same time, for security reasons, it is recommended to add sites to the server not on behalf of admin, but on behalf of another user created to work with sites. In this article, you can learn how to create an additional user.

 

Adding domain (subdomain is added in the same way)

1. Enter the IP address of your VPS server at your DNS domain registrar.

2. Select the section WEB on the ribbon and click on the green button ADD WEB DOMAIN.

3. Fill in all the fields in the window that opens. Cyrillic domain names must be indicated in Cyrillic.

4. Click Advanced Options to configure additional settings:

- enable SSL support,

- connect analytical tools,

- create an FTP account.

When you enable SSL support, you can specify your existing certificate, or order the issue of a free Let’s Encrypt certificate for the specified domain.

 

Also, you can use standard settings without using additional parameters.

 

 

Adding a database

 

1. Select the DB partition and click on the green ADD DATABASE button.

2. In the window that opens, fill in all the fields. Be sure to indicate a valid e-mail, as the login and password to access the database will be sent to this address.

3. Click PHPMYADMIN in the DB section above the list of bases to go to phpMyAdmin. Use the received data for authorization.

 

4. Import the database dump to the server.

5. Update the site configuration file. Paste the name, username and password for the database into the file.

6. Update the site configuration file with the correct database name, database username and password.

 

Uploading site files

 

To upload site files to the server, you can connect using FileZilla via SFTP.

Copy the files to the folder:

/web/domain.name/public_html

When connecting from the admin user, use the full path:

/home /database_username/web /domainname/public_html

 

Use the following credentials in FileZilla:

Host: IP address of your server.

Username: username in VestaCP panel.

Password: password of the user in the VestaCP panel.

Port: 22

 

If you have any questions, please create a ticket to technical support.


How did we do?


IS (opens in a new tab)

Powered by HelpDocs (opens in a new tab)