{"id":2399,"date":"2020-05-11T00:15:08","date_gmt":"2020-05-10T23:15:08","guid":{"rendered":"https:\/\/www.webhostingsrbija.rs\/?p=2349"},"modified":"2023-08-15T10:39:46","modified_gmt":"2023-08-15T09:39:46","slug":"prebacivanje-sajta-sa-localhost-na-cpanel-duplicator","status":"publish","type":"post","link":"https:\/\/www.webhostingsrbija.rs\/en\/prebacivanje-sajta-sa-localhost-na-cpanel-duplicator\/","title":{"rendered":"Transfer site from localhost to cPanel duplicator"},"content":{"rendered":"<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Contents<\/h2><nav><ul><li class=\"\"><a href=\"#pocetni-sajt\">Home page<\/a><ul><li class=\"\"><a href=\"#instalacija-duplicator-plugina\">Installation of the Duplicator plugin<\/a><\/li><li class=\"\"><a href=\"#kreiranje-backup\">Creating a backup<\/a><\/li><\/ul><\/li><li class=\"\"><a href=\"#na-hostingu\">On hosting<\/a><ul><li class=\"\"><a href=\"#kreiranje-baze\">Creating a database<\/a><\/li><li class=\"\"><a href=\"#kreiranje-korisnika-baze\">Creating a database user<\/a><\/li><li class=\"\"><a href=\"#postavljanje-dozvola\">Setting permissions<\/a><\/li><li class=\"\"><a href=\"#postavljanje-fajlova-duplicatora-na-hosting\">Placing duplicator files on hosting<\/a><\/li><li class=\"\"><a href=\"#pokretanje-duplicator-importa\">Starting duplicator import<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Moving a site from localhost (computer) to hosting can be confusing sometimes for beginners. Therefore, the developers have created a plugin that makes things easier. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Namely, this is not only switching from computer to hosting, but also from hosting to hosting. The procedure is exactly the same.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"pocetni-sajt\">Home page<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"instalacija-duplicator-plugina\">Installation of the Duplicator plugin<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">First of all, you need to install the plugin and activate it.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-22.png\" alt=\"\" class=\"wp-image-2351\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After you have activated it, you need to click on the newly installed and activated Duplicator plugin on the left side, an icon will appear.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"kreiranje-backup\">Creating a backup<\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-23-1024x481.png\" alt=\"\" class=\"wp-image-2352\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After the page opens, as shown in the picture, you need to click on Create New marked in red, it means creating new files for transfer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-24-1024x478.png\" alt=\"\" class=\"wp-image-2353\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In this case, we simply go to Next, where it will appear for us to scan the site as in the picture below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-25-1024x479.png\" alt=\"\" class=\"wp-image-2354\" title=\"\"><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-26-1024x518.png\" alt=\"\" class=\"wp-image-2355\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After the scan is complete, it should look like this. What matters is that everything is green. After which we click on the blue button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-27-1024x462.png\" alt=\"\" class=\"wp-image-2356\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">At this moment, a backup file is created for us, which is used to transfer the site to hosting. And upon completion you get the image below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-28.png\" alt=\"\" class=\"wp-image-2357\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In this step you need to download both files and the file <strong>Installer<\/strong> and file <strong>Archive<\/strong>. You download them by clicking both buttons and downloading them one by one.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"na-hostingu\">On hosting<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"kreiranje-baze\">Creating a database<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-29-1024x676.png\" alt=\"\" class=\"wp-image-2358\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here goes the most difficult part of this guide, which is logging into cPanel and clicking on the icon that is framed in red. After which you get an option like the image below.<br><strong>Note:<\/strong> <em>You need to write these three items down in your computer because you will need them later.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-30.png\" alt=\"\" class=\"wp-image-2359\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here you need to enter the name of the database and do not use words like database or trial or wptest. You can already use something unique and not so logical. After you have entered click on <strong>Next Step<\/strong>. And the next step is to create a user for that database as in the picture below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"kreiranje-korisnika-baze\">Creating a database user<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-31-1024x582.png\" alt=\"\" class=\"wp-image-2360\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When you have created the database, it is time for the user. Also apply the rules above that you don&#039;t use anything test samples and the like but something unique and not so logical. To create a password, I strongly recommend that you use the Password Generator as shown in the picture and that you copy and enter that password in the fields on the left. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The reason for this is because cPanel generates a really reliable and strong password for you that will further protect your site from hackers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After creating, click on Create User.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"postavljanje-dozvola\">Setting permissions<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-32.png\" alt=\"\" class=\"wp-image-2361\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now here we assign the user to our database that we have created and allow him everything that is necessary for the site to function. Check ALL PRIVILEGES and click Next Step.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-33.png\" alt=\"\" class=\"wp-image-2362\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">That&#039;s it. The hardest part of this tutorial is over. Note that you need to save these three things because you will need them in the next step.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now we need to upload the files that we downloaded a little earlier via the duplicator plugin. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"postavljanje-fajlova-duplicatora-na-hosting\">Placing duplicator files on hosting<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We do this by going back to the cPanel home page and clicking on File Manager. As in the picture below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-34.png\" alt=\"\" class=\"wp-image-2363\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After which we need to click on the folder first <strong>public_html<\/strong> (and if it is an Addon Domain, then in the folder of that domain) and then on the button <strong>upload<\/strong>. As in the picture below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-36-1024x865.png\" alt=\"\" class=\"wp-image-2365\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After we have clicked in the new tab, we will be able to upload those files. Which we do by selecting the files and uploading them.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-37.png\" alt=\"\" class=\"wp-image-2366\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After the upload is complete, we need to open the file we uploaded, which is installer.php. We do this by entering your domain with a slash and the file name installer.php in the address line of your browser (example: webhostingsrbija.rs\/installer.php)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"pokretanje-duplicator-importa\">Starting duplicator import<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When we do that, something like the picture below will open.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-38.png\" alt=\"\" class=\"wp-image-2367\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Great now you need to tick the terms of use and click the Next button. Note that setup and validation must be green. And after clicking you will get some time depending on the size of the site as in the picture below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-39.png\" alt=\"\" class=\"wp-image-2368\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now that that&#039;s done, it&#039;s time to use those database-related data that we saved in, say, notepad and copy them here. The data we copy is the database, the database user and the password for the created user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you haven&#039;t saved that data, you can find it in cPanel &gt; MySQL Databases, and you can create a password on the same page, but at the very bottom of that page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-41.png\" alt=\"\" class=\"wp-image-2370\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you have filled in you need to click on Test Database and you will see Validation framed in green where you must get a green result. After turning green, click Next.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-42.png\" alt=\"\" class=\"wp-image-2371\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here you get a small popup where you need to confirm with OK.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-43.png\" alt=\"\" class=\"wp-image-2372\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In this step, the basic data of the new site is set. Here, the plugin automatically changes the site url from localhost to the domain you use (if it is http:\/\/, set it to https:\/\/ because you have enabled SSL, which you get with us for free and automatically). We click on the Next button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/05\/Screenshot-44.png\" alt=\"\" class=\"wp-image-2373\" title=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Awesome. You have successfully transferred the entire site and now you can log in to your site with the new domain. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After this you need to delete the plugin because any plugin you no longer use is highly recommended to be deleted, the same goes for the theme.<\/p>","protected":false},"excerpt":{"rendered":"<p>How to transfer the site from localhost to hosting with the help of the duplicator plugin in just a few steps.<\/p>","protected":false},"author":1,"featured_media":2350,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18,19],"tags":[30,68,35],"class_list":["post-2399","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kako","category-wordpress","tag-cpanel","tag-plugin","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/2399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/comments?post=2399"}],"version-history":[{"count":1,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/2399\/revisions"}],"predecessor-version":[{"id":5689,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/2399\/revisions\/5689"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/2350"}],"wp:attachment":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media?parent=2399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/categories?post=2399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/tags?post=2399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}