How to add a (website) domain to VestaCP

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 the admin, but on behalf of another user created to work with sites. In this article, you can learn how to create an additional user.

Before adding a new domain, you can find out when was the domain created.

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.
    Click "ADD WEB DOMAIN"
  3. Fill in all the fields in the window that opens. Cyrillic domain names must be indicated in Cyrillic.
    Fill in all the fields
  4. Click Advanced Options to configure additional settings:
    1. enable SSL support,
    2. connect analytical tools,
    3. 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.
    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.
    Click PHPMYADMIN
  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.