{"id":37052,"date":"2019-04-15T17:32:33","date_gmt":"2019-04-15T14:32:33","guid":{"rendered":"https:\/\/tuthost.ua\/faq\/uploading-to-your-site\/"},"modified":"2024-07-19T22:08:07","modified_gmt":"2024-07-19T19:08:07","slug":"uploading","status":"publish","type":"ht_kb","link":"https:\/\/tuthost.ua\/en\/faq\/uploading\/","title":{"rendered":"Uploading to your site"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Uploading to your site<\/h2>\n\n<p>This section describes uploading via FTP, DirectAdmin file manager and SSH. You can download using any of these methods.<\/p>\n\n<h3 class=\"wp-block-heading\" id=\"structure\"><a name=\"catalogs\"><\/a>Directory structure<\/h3>\n\n<p>These directories exist in the root of your account:<\/p>\n\n<ul class=\"wp-block-list\"><li>\/backups<\/li><li>\/domains<\/li><li>\/imap<\/li><li>\/Maildir<\/li><li>\/public_html<\/li><\/ul>\n<p><strong>\/backups<\/strong><\/p>\n\n<p>The \/backups directory contains all backups created using the control panel. You won&#8217;t have a \/backups directory until you create a backup in the control panel.<\/p>\n\n<p><strong>\/domains<\/strong><\/p>\n\n<p>The \/domains directory contains files related to your hosting account. Each domain hosted in your account has its own directory (\/domains\/example.com). This directory contains:<\/p>\n\n<ul class=\"wp-block-list\"><li>\/logs monthly logs are stored here &#8211; the directory is created one month after you create your account<\/li><li>\/private_html files for your encrypted website when it uses an ssl certificate<\/li><li>\/public_html files for your website<\/li><li>\/public_ftp files for your FTP site<\/li><li>\/stats files created by Webalizer for statistics &#8211; do not change or delete this directory<\/li><\/ul>\n<p><strong>\/imap<\/strong><\/p>\n\n<p>Each IMAP folder (usually for incoming messages) has subfolders new and cur. The new subfolder contains all new messages that have not yet been viewed by any email client (whether offline or online). Normally, you view them through a mail client (POP3 or IMAP), otherwise, if you view them in SSH, FTP or the file manager, they will not be marked as read.<\/p>\n\n<p><strong>\/Maildir<\/strong><\/p>\n\n<p>\/Maildir is a system storage for mailboxes. It has nothing to do with virtual mailboxes. In most cases, the storage box contains errors and notifications from the system.<\/p>\n\n<p><strong>\/public_html<\/strong><\/p>\n\n<p>The \/public_html directory at the root of your account is a link to \/domains\/example.com\/public_html. If your account hosts multiple domains, this link will redirect you to the public_html directory of the last domain created in your account.<\/p>\n\n<h3 class=\"wp-block-heading\" id=\"home\">Home (index.html) file<\/h3>\n\n<p>The default file for any web directory is index.html. This means that when visitors access http:\/\/www.example.com, the server actually sends them to http:\/\/www.example.com\/index.html. This works for any public directory on your system, including subdomains.<\/p>\n\n<p>When loading the main website file for each directory, don&#8217;t forget to name it index.html. Experienced users can use PHP files, shtml files, etc. If your website is not based on html, make sure that your main files are renamed to index.extension (e.g. index.php, index.shtml).<\/p>\n\n<h3 class=\"wp-block-heading\" id=\"ftp\"><a name=\"ftp\"><\/a>Uploading from FTP<\/h3>\n\n<p><strong>Step 1<\/strong>: Download the FTP client.<\/p>\n\n<p>Uploading to the server via FTP requires special software. Most computer systems do not come with FTP clients, so you will have to download them from the Internet. We highly recommend <a href=\"https:\/\/filezilla-project.org\/\" rel=\"nofollow noopener\" target=\"_blank\">FileZilla<\/a>.<\/p>\n\n<p><strong>Step 2<\/strong>: Connect to the server.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/1-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"653\" height=\"35\" src=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/1-6.png\" alt=\"\" class=\"wp-image-23125\" title=\"\" srcset=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/1-6.png 653w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/1-6-150x8.png 150w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/1-6-300x16.png 300w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/1-6-125x7.png 125w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/1-6-75x4.png 75w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/a><\/figure><\/div>\n<p>If you use FileZilla, the information should look like this:<br\/><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"alignright\"><a href=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/2-9-243x300.png\"><img loading=\"lazy\" decoding=\"async\" width=\"243\" height=\"300\" src=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/2-9-243x300.png\" alt=\"\" class=\"wp-image-23126\" title=\"\" srcset=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/2-9-243x300.png 243w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/2-9-121x150.png 121w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/2-9-101x125.png 101w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/2-9-61x75.png 61w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/2-9.png 502w\" sizes=\"auto, (max-width: 243px) 100vw, 243px\" \/><\/a><\/figure><\/div>\n<p>All FTP clients need the following information:<\/p>\n\n<ul class=\"wp-block-list\"><li>User name (this is your user name in the control panel).<\/li><li>Password (This is your control panel password.)<\/li><li>Address (Host) (This is the server address. Use ftp.example.com)<\/li><li>Port (Use default port 21)<\/li><\/ul>\n<p><strong>Step 3<\/strong>: Open the public_html directory and upload your files.<\/p>\n\n<p>Once connected, you can see your folders in the right pane. You can click on the desired folder to see its contents. If you have multiple domains hosted in your account, you must first go into the \/domains directory, then the domain you want to edit, then the public_html directory.<\/p>\n\n<p>To download, select the files\/folders on your computer and drag them to the appropriate directory on the remote server. Each FTP client works differently, so please refer to its help file for complete instructions.<\/p>\n\n<h3 class=\"wp-block-heading\" id=\"filemanager\">Downloading with the DirectAdmin file manager<\/h3>\n\n<p>Downloading with the DirectAdmin File Manager is an easy way to transfer files between your computer and the server without any additional programs.<\/p>\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/3-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-23128 aligncenter\" src=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/3-6.png\" alt=\"\" width=\"120\" height=\"80\" title=\"\" srcset=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/3-6.png 120w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/3-6-75x50.png 75w\" sizes=\"auto, (max-width: 120px) 100vw, 120px\" \/><\/a><a href=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/4-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-23127 aligncenter\" src=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/4-7.png\" alt=\"\" width=\"139\" height=\"77\" title=\"\" srcset=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/4-7.png 139w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/4-7-125x69.png 125w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/4-7-75x42.png 75w\" sizes=\"auto, (max-width: 139px) 100vw, 139px\" \/><\/a>  1. Log in to the Control Panel and click the System and Files icon.<\/li><li>2. Select the File Manager menu.<\/li><li>3. Navigate to the directory where you want to download the files.<\/li><li>4. Tap the Upload File button at the top of the screen.<a href=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/5-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-23129 aligncenter\" src=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/5-9.png\" alt=\"\" width=\"145\" height=\"35\" title=\"\" srcset=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/5-9.png 145w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/5-9-125x30.png 125w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/5-9-75x18.png 75w\" sizes=\"auto, (max-width: 145px) 100vw, 145px\" \/><\/a><br\/><a href=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/6-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-23130 size-full\" src=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/6-8.png\" alt=\"\" width=\"720\" height=\"420\" title=\"\" srcset=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/6-8.png 720w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/6-8-150x88.png 150w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/6-8-300x175.png 300w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/6-8-125x73.png 125w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/6-8-75x44.png 75w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/li><li>5. After that, simply drag the desired items from your computer to DirectAdmin and click &#8220;Load&#8221;.<\/li><li>6. <strong>Note<\/strong>. Make sure that the path to the above is correct. (the path starts with a slash &#8211; \/ in your home directory).<\/li><\/ul>\n<p>Uploading files using the DirectAdmin File Manager is really easy and useful. You can also change file permissions or even edit files from the direct admin control panel. You can find all of these features with a detailed usage guide <a href=\"https:\/\/tuthost.ua\/en\/faq\/filemanager\/\">here<\/a>.<\/p>\n\n<h3 class=\"wp-block-heading\" id=\"ssh\">Downloading via SSH<\/h3>\n\n<p>With SSH you can log in to the server and download files directly from other servers.<\/p>\n\n<ul class=\"wp-block-list\"><li><strong>Note<\/strong>: Some hosting companies may disable the SSH feature for security reasons.<\/li><li><strong>Note<\/strong>: SSH should not be used by those who are not familiar with the Unix environment.<\/li><\/ul>\n<p>Connect to the server with the terminal using OpenSSH<\/p>\n\n<p>Just open a terminal (Linux\/MacOS only) and type your username and server name. Example:<\/p>\n\n<pre class=\"wp-block-preformatted\">ssh user@example.com<\/pre>\n\n<p>You will be prompted for a password. Do that and press Enter<\/p>\n\n<ul class=\"wp-block-list\"><li><strong>Note<\/strong>: you won&#8217;t see the password characters displayed, it&#8217;s okay, just type it in and press enter.<\/li><li><strong>Note<\/strong>: The default port of the ssh server is 22. If your server has a different port, you must specify it when connecting via ssh terminal. Example:<\/li><\/ul>\n<pre class=\"wp-block-preformatted\">ssh -p 2222 user@example.com<\/pre>\n\n<p>Where -p is the port and 2222 is the port number of your server.<\/p>\n\n<h3 class=\"wp-block-heading\">Connect to the server using PuTTy<\/h3>\n\n<p>Download PuTTy <a href=\"https:\/\/www.putty.org\/\" rel=\"nofollow noopener\" target=\"_blank\">from here<\/a>.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/7-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"274\" height=\"42\" src=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/7-7.png\" alt=\"\" class=\"wp-image-23131\" title=\"\" srcset=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/7-7.png 274w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/7-7-150x23.png 150w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/7-7-125x19.png 125w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/04\/7-7-75x11.png 75w\" sizes=\"auto, (max-width: 274px) 100vw, 274px\" \/><\/a><\/figure><\/div>\n<p>Enter your hostname and port (the default is 22)<br\/><br\/>Click Open. You will continue to the terminal and enter your user name and password. Once connected, the steps below are the same as for OpenSSH and PuTTy.<\/p>\n\n<p><strong>Navigate to the directory where you want your files to be uploaded<\/strong><\/p>\n\n<p>Once connected, you will appear in your home directory. However, you may want to access your public_html directory, you can do this with the <strong>cd<\/strong> command. Example:<\/p>\n\n<pre class=\"wp-block-preformatted\">cd \/home\/user\/domains\/example.com\/public_html\/<\/pre>\n\n<p>Where <strong>user<\/strong> is your username and <strong>example.com<\/strong> is your domain name. You can also access public_html simply by typing<\/p>\n\n<pre class=\"wp-block-preformatted\">cd domains\/example.com\/public_html\/<\/pre>\n\n<p>Since ssh registers you in your home directory by entering the full path, you will <strong>always<\/strong> have access to the folder you want.<\/p>\n\n<h3 class=\"wp-block-heading\">File Downloads.<\/h3>\n\n<p>You can now download files by using the <strong>wget<\/strong> command. Just enter:<\/p>\n\n<pre class=\"wp-block-preformatted\">wget https:\/\/www.yourstoragedomain.com\/filename.png<\/pre>\n\n<p>You can also download from an FTP server using wget. To do this, simply enter:<\/p>\n\n<pre class=\"wp-block-preformatted\">wget ftp:\/\/username:password@ftp.yourstoragedomain.com\/filename.png<\/pre>\n\n<p>wget has many more options to learn all about them, you can get more information <a href=\"https:\/\/www.gnu.org\/software\/wget\/\" rel=\"nofollow noopener\" target=\"_blank\">here<\/a>.<\/p>\n\n<h3 class=\"wp-block-heading\">Using rsync to synchronize files<\/h3>\n\n<p><strong>\n  <span style=\"color: red;\">Warning<\/span>\n<\/strong>: using rsync can cause the file to be deleted, so make sure you do before using rsync.<\/p>\n\n<p>rsync is a powerful tool for synchronizing files between servers or simply downloading one from another. Example usage:<\/p>\n\n<pre class=\"wp-block-preformatted\">rsync -avt olduser@olddomain.com:\/home\/olduser\/domains\/olddomain.com\/public_html\/logo.png user@newdomain.com:\/home\/user\/domains\/newdomain.com\/public_html\/<\/pre>\n\n<p>Where:<\/p>\n\n<ul class=\"wp-block-list\"><li>olduser is the user you want to download the logo.png file from<\/li><li>olddomain.com is the domain from which you want to download the logo.png file<\/li><li>logo.png is the file from olddomain.com that you want to transfer to newdomain.com<\/li><li>user is the user from the new server from which you want your file to be downloaded.<\/li><li>newdomain.com is the domain where you want your file to be downloaded.<\/li><li>public_html is the folder where the logo.png file will be loaded. don&#8217;t forget to put \/ at the end.<\/li><\/ul>\n<p>rsync is a very powerful tool with many features, if you want to know more about it, you can read about them <a href=\"https:\/\/linux.die.net\/man\/1\/rsync\" rel=\"nofollow noopener\" target=\"_blank\">here<\/a>.<\/p>\n<div class=\"gb-button-wrapper gb-button-wrapper-356899ee\">\n\n<a class=\"gb-button gb-button-ded941f8 gb-button-yellow-button\" href=\"https:\/\/tuthost.ua\/en\/hosting\/unix\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"gb-icon\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"svg\" viewbox=\"0 0 32 32\" height=\"32\" width=\"32\" version=\"1.1\">\n<title>dedicated<\/title>\n<path d=\"M24.681 17.744c-0.925 0-1.681 0.756-1.681 1.681 0 0.931 0.756 1.681 1.681 1.681s1.681-0.756 1.681-1.681c0-0.925-0.756-1.681-1.681-1.681zM24.681 20.269c-0.462 0-0.844-0.375-0.844-0.844 0-0.462 0.375-0.837 0.844-0.837s0.844 0.375 0.844 0.837c0 0.469-0.381 0.844-0.844 0.844z\" fill=\"currentColor\"><\/path>\n<path d=\"M29.544 13.537h-27.087c-1.113 0-2.019 0.838-2.019 1.863v8.050c0 1.025 0.906 1.863 2.025 1.863h27.081c1.113 0 2.019-0.837 2.019-1.863v-8.050c0-1.025-0.906-1.863-2.019-1.863zM30.719 23.45c0 0.563-0.531 1.025-1.181 1.025h-27.081c-0.65 0-1.181-0.456-1.181-1.025v-8.050c0-0.563 0.531-1.025 1.181-1.025h27.081c0.65 0 1.181 0.456 1.181 1.025v8.050z\" fill=\"currentColor\"><\/path>\n<path d=\"M24.681 4.662c-0.925 0-1.681 0.756-1.681 1.681 0 0.931 0.756 1.681 1.681 1.681s1.681-0.756 1.681-1.681c0-0.931-0.756-1.681-1.681-1.681zM24.681 7.188c-0.462 0-0.844-0.381-0.844-0.844s0.375-0.838 0.844-0.838 0.844 0.375 0.844 0.838c0 0.463-0.381 0.844-0.844 0.844z\" fill=\"currentColor\"><\/path>\n<path d=\"M29.544 0.456h-27.087c-1.113 0-2.019 0.831-2.019 1.863v8.050c0 1.025 0.906 1.863 2.025 1.863h27.081c1.113 0 2.019-0.838 2.019-1.863v-8.050c0-1.031-0.906-1.863-2.019-1.863zM30.719 10.369c0 0.563-0.531 1.025-1.181 1.025h-27.081c-0.65 0-1.181-0.456-1.181-1.025v-8.050c0-0.563 0.531-1.025 1.181-1.025h27.081c0.65 0 1.181 0.456 1.181 1.025v8.050z\" fill=\"currentColor\"><\/path>\n<path d=\"M25.988 29.8h-8.356c-0.15-0.594-0.619-1.056-1.206-1.212v-1.875c0-0.231-0.188-0.419-0.419-0.419s-0.419 0.188-0.419 0.419v1.875c-0.588 0.15-1.056 0.619-1.206 1.212h-8.369c-0.231 0-0.419 0.188-0.419 0.419s0.188 0.419 0.419 0.419h8.356c0.188 0.725 0.85 1.262 1.631 1.262s1.444-0.538 1.631-1.262h8.356c0.231 0 0.419-0.188 0.419-0.419s-0.188-0.419-0.419-0.419zM16 31.063c-0.463 0-0.844-0.375-0.844-0.844 0-0.462 0.375-0.844 0.844-0.844 0.462 0 0.844 0.375 0.844 0.844-0.006 0.462-0.381 0.844-0.844 0.844z\" fill=\"currentColor\"><\/path>\n<\/svg><\/span><span class=\"gb-button-text\">Buy hosting<\/span><\/a>\n\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Uploading to your site This section describes uploading via FTP, DirectAdmin file manager and SSH. You can download using any of these methods. Directory structure These directories exist in the root of your account: \/backups \/domains \/imap \/Maildir \/public_html \/backups The \/backups directory contains all backups created using the control panel. You won&#8217;t have a&#8230;<\/p>\n","protected":false},"author":4,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","ghostkit_customizer_options":"","ghostkit_custom_css":"","ghostkit_custom_js_head":"","ghostkit_custom_js_foot":"","ghostkit_typography":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"ht-kb-category":[10694],"ht-kb-tag":[],"class_list":["post-37052","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-control-panel-directadmin"],"taxonomy_info":{"ht_kb_category":[{"value":10694,"label":"Control Panel - Directadmin"}]},"featured_image_src_large":[],"author_info":{"display_name":"\u041e\u043b\u0435\u0433 \u041f\u043e\u043a\u043e\u0442\u0438\u043b\u043e","author_link":"https:\/\/tuthost.ua\/en\/author\/oleg-tuthost-com\/"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/37052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/comments?post=37052"}],"version-history":[{"count":6,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/37052\/revisions"}],"predecessor-version":[{"id":58416,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/37052\/revisions\/58416"}],"wp:attachment":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/media?parent=37052"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-category?post=37052"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=37052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}