How to upload files to server?
You can use an FTP connection to upload files to the server. Create an FTP account on your server using VestaCP. In the main page of the panel, select "WEB", hover over the domain name and in the drop-down menu click "Edit":
Check the option "Additional FTP".
In the option's settings, enter the account name, e.g., Ivan (! keep in mind that the admin prefix will be added to the account name, e.g. admin_ivan will be used to connect via FTP, admin_ivan), generate a password or create your own. "Path" field is the path to the folder that will be available upon connection via FTP, by default it is /home/admin/web/your_domain (in this example - /home/admin/web/mysite.ru).
Click on "Save":
FTP-server is now ready for use. To download files using an FTP connection, you must use a special program, an FTP client (e.g. FileZilla). Before downloading files, establish an FTP connection to the server. For this purpose, enter the following parameters in the FTP client's connection properties:
- address of the FTP-server
- user name
- password
After successful connection is established, the contents of the accessible directory of your server will be displayed on the right side of FileZilla's (FTP client) interface with the files of the local computer being displayed on the left side.
Upload necessary files to the server by dragging them onto the right side.
Please pay attention to the public_html directory. It is the directory to which the files of the site (if any) need to be copied.
After having been uploaded to the directory named as above, the files will be accessible in the Internet at the following address http://your_site.ru/file-name
- your_site.ru — domain name of your site
- file-name — full name of the file with extension
E.g., if your domain name is mydomain.ru and the name of the file is test.html, then after uploading to the server the file will be available at http:// mydomain .ru/test.html.