Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Så här flyttar du WordPress från en lokal server till en Live site (2 metoder)

Många WordPress-användare föredrar att arbeta med sina webbplatser på en lokal server på datorn. På så sätt kan du arbeta privat med din webbplats innan du gör ändringarna tillgängliga online.

Så småningom måste du flytta den till en live-server för att göra den tillgänglig för onlinebesökare. Denna övergång är avgörande för att säkerställa att din webbplats fungerar korrekt på live-webbplatsen.

Vi har arbetat med många lokala webbplatser, så vi var tvungna att lära oss det enklaste sättet att överföra innehåll till levande webbplatser.

I den här artikeln ger vi dig steg-för-steg-instruktioner om hur du flyttar WordPress från en lokal server till en live-webbplats.

How to move WordPress from local server to live site (2 methods)

Varför flytta WordPress från en lokal server till en Live site?

Att bygga din WordPress blogg på en lokal server är ett säkert sätt att testa ändringar på din website utan att påverka besökarna.

När you har slutfört finslipningen av din website är nästa steg att flytta från din lokala server till en live site.

Låt oss visa dig två sätt att flytta din site från en lokal server till en live site.

Den första metoden använder ett plugin för att flytta WordPress och rekommenderas för Beginnare.

I den andra metoden visar vi dig hur du manuellt flyttar WordPress från en lokal server till en live site.

Du kan välja den metod som fungerar bäst för dig:

Innan du flyttar din WordPress webbplats

Du måste ha några saker på plats för att migrera WordPress från en lokal server till en live-server.

Först antar vi att du har en WordPress-webbplats som körs på en lokal server (även kallad localhost) på din dator och att du har full tillgång till den.

Därefter måste du ha ett domain name och ett webbhotell.

Vi har hört otaliga historier från nybörjare som började med dåliga eller gratis webbhotell och ångrade sig. Enligt vår erfarenhet är valet av rätt webbhotell avgörande för att en webbplats ska bli framgångsrik.

För att göra ditt beslut enklare rekommenderar vi att du använder Bluehost. De är ett officiellt rekommenderat webbhotell för WordPress, och de ger WPBeginners användare en exklusiv rabatt + gratis domän och SSL.

I grund och botten kan du komma igång för så lite som $ 1.99 per månad.

Om du vill ha ett bra Bluehost-alternativ kan du titta på Hostinger. De erbjuder också en exklusiv rabatt till WPBeginners användare med ett gratis domain name.

Om du har råd att betala lite mer, kontrollera då SiteGround. De har också ett specialerbjudande för WPBeginners läsare.

Om du behöver hjälp med att skapa din website kan du följa vår Step-by-Step guide om hur du skapar en website.

Slutligen behöver du ett FTP-program och veta hur du använder FTP för att uppladda din lokala server till live-sajten.

Är du redo? Låt oss börja flytta din WordPress site.

Video Tutorial

Subscribe to WPBeginner

Om du föredrar skriftliga instruktioner är det bara att fortsätta läsa.

Metod 1: Överför WordPress från den lokala servern till Live Site med hjälp av ett tillägg för migrering (rekommenderas)

Den här metoden är enklare och rekommenderas för Beginnare. Vi kommer att använda ett plugin för WordPress-migrering för att flytta WordPress från localhost till en live site.

Step 1: Installera och konfigurera tillägget Duplicator

Först måste du installera och aktivera pluginet Duplicator på din lokala site. För mer detaljer, se vår Step-by-Step guide om hur du installerar ett plugin för WordPress.

Pro tips: Det finns också en Pro-version av Duplicator som erbjuder säkra backups, molnlagring, enkel återställning av webbplatser och mer.

Vid aktivering måste du gå till Duplicator ” Packages page och klicka på knappen ’Create New’.

Create new package for migration

Då kommer du till en vy där du kan ge din backup ett namn.

Klicka sedan på knappen ”Next”.

Name backup package

Duplicator kommer nu att runna några tester för att se om allt är i order.

Om alla punkter är markerade med ”Bra” klickar du på knappen ”Bygg”.

Build package

Denna process kan ta några minuter, beroende på storleken på din webbplats. Du måste lämna den här fliken öppen tills den är klar.

När du är slutförd ser du alternativ för download av paketen ’Installer’ och ’Archive’. Du måste klicka på länken ”One-Click Download” för att ladda ner båda filerna till din dator.

Download package files

Filen ”Archive” är en komplett kopia av din WordPress site. Den innehåller alla WordPress core-filer samt dina images, uploads, themes, plugins och en backup av din WordPress database.

Filen ”Installer” är ett skript som kommer att automatisera hela migreringsprocessen genom att packa upp archive-filen som innehåller din website.

Step-by-Step 2: Skapa en Database för din Live WordPress website

Innan du kan runna installeraren eller uploada WordPress-webbplatsen från localhost till ditt webbhotell måste du skapa en MySQL-databas för din new live website.

Om du redan har skapat en MySQL-databas kan du hoppa över det här steget.

För att skapa en database måste you gå till cPanel dashboard på ditt webbhotell account. Leta sedan upp sektionen ”Databases” och klicka på ikonen ”MySQL Database Wizard”.

MySQL Database Wizard

På nästa vy finns det ett fält för att skapa en new database.

Ange bara ett namn på din database och click på knappen ”Create Database”.

Name new database

cPanel kommer nu att skapa en new database åt you.

Efter det måste du enter ett användarnamn och password för din nya användare och sedan click the ”Create User” button.

Create new database user

Nu måste du add to den användare som du just skapat till databasen.

Klicka först på checkboxen ”All Privileges”.

Check all privileges

Sedan rullar du ner och klickar på knappen ”Make Changes” för att save your changes.

Din database är nu redo att användas med din site WordPress. Se till att du obs/observerar databasens namn, användarnamn och password. Du kommer att behöva denna information i nästa steg.

Steg 3: Ladda upp filer från den lokala servern till WordPress-webbplatsen i realtid

Nu måste du uploada archive- och installer-filerna från din lokala site till ditt webbhotell.

Anslut först till din Live site med hjälp av en FTP-klient. När du har anslutit, se till att rotkatalogen på din website är helt tom.

Normalt sett är root directory foldern /home/public_html/.

Vissa webbhotell för WordPress installerar WordPress automatiskt när du registrerar dig. Om du har WordPress-filer där måste du ta bort dem.

Efter det kan du uploada archive.zip och installer.php-filerna från Duplicator till din tomma root directory.

Upload archive and installer files

Steg 4: Run på migreringsskriptet

Följ efter att du har uppladdat migreringsfilerna, du måste besöka följande URL i din webbläsare:

http://example.com/installer.php

Glöm inte att ersätta ”example.com” med ditt eget domain name.

Detta kommer att starta migreringsguiden för Duplicator.

Installern kommer att runna några tester och initiera skriptet.

Duplicator migration wizard step 1

Under Setup section kommer du att bli ombedd att enter din MySQL server, databasnamn, användarnamn och password.

Din värd kommer troligen att vara en lokal värd. Därefter anger du uppgifterna för den databas som du skapade i det tidigare steget.

Klicka sedan på knappen ”Validate” för att kontrollera att de detaljer du har enter är korrekta.

Validate settings

Därefter klickar du på knappen ”Nästa” för att fortsätta.

Duplicator importerar nu din WordPress backup av databasen från archive till din new database.

Den kommer också att uppdatera webbadresser som pekar på den lokala webbplatsen och din nya live-webbplats.

You can now click on the ”Admin Login” button to enter the WordPress admin area of your live site.

Admin login

När du loggar in på din live site kommer Duplicator automatiskt att städa upp installationsfilerna.

Nu är allt klart. Du har utan problem flyttat WordPress från den lokala servern till din live site.

Metod 2: Överför WordPress manuellt från den lokala servern till Live-webbplatsen

I den här metoden visar vi hur du manuellt flyttar WordPress från den lokala servern till din live site. Det är användbart om den första metoden inte fungerar eller om du föredrar att göra det manuellt.

Step-by-Step: Exportera lokal WordPress Database

Det första du behöver göra är att exportera din lokala WordPress database. Vi kommer att använda phpMyAdmin för att göra det.

Om du inte är bekant med det kan du läsa vår guide till hantering av WordPress Database med phpMyAdmin.

Gå till http://localhost/phpmyadmin/ och klicka på your WordPress database. Därefter klickar du på knappen ”Exportera” högst upp i menyn.

Export from localhost

I alternativet ”Exportmetod:” kan du välja ”Snabb” eller ”Anpassad”. Custom ger dig fler alternativ för att exportera din databas.

Men vi rekommenderar att du väljer ”Quick” och sedan klickar på knappen ”Go” för att downloada din database.

Export WordPress database using phpMyAdmin

Step 2: Uppladda WordPress-filer till Live Site

Nu måste vi flytta all your website-filer till live site.

För att komma igång öppnar du din FTP-klient och ansluter till ditt konto på webbhotellet.

När du är ansluten till din live-webbplats ska du se till att du laddar upp filerna i rätt katalog. Om du till exempel vill att webbplatsen ska hostas på ”dinsite.com” ska du ladda upp alla filer i din public_html-katalog.

Välj nu dina lokala WordPress-filer och uploada dem till din live server.

Upload WordPress files FTP

Step-by-Step 3: Skapa en MySQL Database på din Live site

Medan din FTP-klient uppladdar dina WordPress-filer kan du börja importera din database till live-servern.

De flesta WordPress-hostingleverantörer erbjuder cPanel för att hantera ditt hostingkonto, så vi kommer att visa dig hur du skapar en databas med hjälp av cPanel.

Först måste du logga in på din cPanel dashboard och click på ”MySQL Database Wizard” icon, som finns i ”Databases” section.

Select MySQL database wizard

På nästa vy kan du skapa en new database.

Du måste ange ett namn för din databas och sedan klicka på ”Create Database”.

Name and create new database

cPanel kommer nu automatiskt att skapa en new database åt you.

Därefter måste du ange ett användarnamn och lösenord för din nya användare och sedan klicka på ”Create User”.

Create new database user

Efter det måste du add to den användare du just skapat till databasen.

Kontrollera först checkboxen ”All Privileges”.

Check all privileges checkbox

Sedan rullar du ner och klickar på ”Make Changes” för att save your changes.

Du har utan problem skapat en new database för din live WordPress site.

Step 4: Importera WordPress Database till Live Site

Nästa steg i processen är att importera din WordPress database.

Gå till din cPanel-instrumentpanel, bläddra ner till avsnittet ”Databaser” och klicka på ”phpMyAdmin”.

Click on phpMyAdmin

Detta tar dig till phpMyAdmin, där du vill klicka på databasen som du just skapade ovan. phpMyAdmin visar din nya databas utan tabeller.

Klicka sedan på tabben ”Import” högst upp i menyn. På sidan import klickar du på knappen ”Choose File” och väljer sedan database-filen från den lokala site som du saved i det första steget.

Import database via phpMyAdmin

Därefter klickar du på knappen ”Go” längst ner på sidan. Din database kommer automatiskt att importeras till phpMyadmin.

Step 5: Ändra URL:en för webbplatsen

Nu måste du ändra webbplatsens URL i din database så att den ansluter till din live WordPress-webbplats.

I phpMyAdmin letar du efter wp_options-tabellen i din database som du just importerade ovan.

Om you changed your database prefix, then instead of wp_options, it might be {new_prefix}_options.

Klicka sedan på knappen ”Browse” bredvid wp_options. Eller klicka på länken i sidebaren för att öppna upp den page som innehåller en lista över fälten i tabellen wp_options.

Browse the wp options table

Sedan, i options_name column, måste du leta efter alternativet siteurl.

Klicka sedan på ikonen ”Edit”.

Edit siteurl in phpMyAdmin

Du får upp ett fönster där du kan edit:a fältet.

I inmatningsrutan option_value ser du webbadressen till din lokala installation, som kommer att vara något i stil med http://localhost/test.

Du måste infoga din nya site URL i detta fält, till exempel: https: //www.wpbeginner.com.

Sedan kan du save fältet genom att clicka på knappen ”Go”.

edit the siteurl field

Därefter måste du följa samma steg som ovan för namnet på hemalternativet. Menyn wp_options kan vara några pages lång. Vanligtvis kommer home page-alternativet att finnas på den andra sidan.

Uppdatera sedan hem-URL:en så att den är densamma som URL:en för din live site.

Step-by-Step 6: Konfigurera din Live site

Nu när du har importerat databasen och uppladdat ditt content är det dags att konfigurera WordPress.

Just nu bör din site visa felmeddelandet”Error establishing a database connection”.

För att fixa detta ansluter du till din website med en FTP-klient och öppnar filen wp-config.php.

Du kommer att leta efter följande rader med kod:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );
/** MySQL database username */
define( 'DB_USER', 'username_here' );
/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' );

Du måste ange namnet på databasen, användarnamnet och passwordet som du skapade tidigare.

Save sedan filen wp-config.php och uploada den tillbaka till ditt WordPress webbhotell server.

Nu, när you besöker your website, ska den vara live.

Efter det måste du logga in på din WordPress adminpanel och gå till Settings ” Allmänt. Sedan, utan att ändra något, rullar du längst ner och klickar på knappen ”Save Changes”.

Save general settings

Detta kommer att se till att din sites URL är korrekt på alla andra ställen där den behöver vara.

När du har gjort det, gå till Settings ” Permalinks, rulla sedan ner och klicka på ”Save Changes” för att säkerställa att alla länkar till post fungerar bra.

Save permalinks settings

När du flyttar en WordPress-webbplats från en domän till en annan eller från en lokal server till en live site, kommer du att stöta på brutna links och saknade images.

Vi visar dig två sätt att uppdatera webbadresser. Du kan välja det som fungerar bäst för dig.

1. Uppdatera webbadresser med hjälp av Search & Replace Everything Plugin (rekommenderas)

Det säkraste sättet att åtgärda detta är att använda Search & Replace Everything. Det är ett kraftfullt WordPress-plugin som gör att du enkelt kan utföra massuppdateringar på din webbplats utan att skriva komplexa databasfrågor.

Först måste du installera och aktivera pluginet Search & Replace Everything.

Efter aktiveringen går du till sidan Verktyg ” WP Search & Replace.

Search and replace URLs from local to live site migration

Därefter måste du ange webbadressen till din lokala webbplats i fältet ”Sök efter” och webbadressen till din live-webbplats i fältet ”Ersätt med”.

Bläddra lite och klicka på ”Välj alla” under tabellerna. Detta säkerställer att insticksprogrammet letar efter den gamla webbadressen överallt i databasen.

Select tables

Klicka nu på knappen ”Förhandsgranska Sök & Ersätt” för att fortsätta.

Pluginet söker i din databas efter alla förekomster av den gamla URL:en och förhandsgranskar sedan resultaten.

Preview changes

Om allt ser bra ut klickar du på ”Replace All” för att spara ändringarna.

Du kommer att se en varning om de ändringar du gör. Klicka på ”Ja” för att fortsätta.

Pluginet kommer nu att uppdatera databasen och ersätta lokala webbadresser med din nuvarande webbadress.

2. Uppdatera webbadresser manuellt (Avancerat)

Ett annat sätt att uppdatera webbadresserna är att använda följande SQL-fråga:

UPDATE wp_posts SET post_content = REPLACE(post_content, 'localhost/test/', 'www.yourlivesite.com/');

Gå bara till phpMyAdmin, klicka på din databas och klicka sedan på ”SQL” i toppmenyn och lägg till frågan ovan.

Se till att du ändrar URL:erna till din lokala webbplats och din live-webbplats och klicka på knappen ”Go”.

Fixing WordPress images and broken URLs after moving to live site

Nu är det klart. Nu har du utan problem flyttat WordPress från din lokala server till en live site.

Förhoppningsvis är din live-webbplats igång och fungerar smidigt. Om du upptäcker några fel kan du kolla in vår guide till vanliga WordPress-fel för att få hjälp med felsökning.

Vi hoppas att den här artikeln hjälpte dig att flytta WordPress från en lokal server till en live-webbplats. Du kanske också vill se vår guide om att flytta en live-webbplats till en lokal server eller titta på den ultimata checklistan för webbplatsmigrering för praktiska steg för WordPress-migrering.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

909 kommentarerLämna ett svar

  1. Syed Balkhi

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. divine

    Nice article,

    Everything was go fine until the signing up on wordpress Admin, i’ve had d domain name for a long time and I can’t remember my wp-admin login details. What can I do to rectify this problem?
    Secondly, I tried visiting my site, it opened but the site kept saying the page could not be found, I need help pls

  3. monica

    Hi there,
    So, My site is runing and seems to work on the Lovalhost/mysite
    DB connection is good, settes permalinks to default.

    BUT:

    all the links fo to the domain (live site) what I’m missing?
    O.o

    Thanks in advance, great tuto

  4. rdllngr

    Everything worked for me. Thanks a lot!

  5. Alem

    Helped me go live :-) Thank you.

  6. aqeel

    hi plz help i am having this errer when i click import my database plz help

    Error
    SQL query:


    — Database: `testword`

    — ——————————————————–

    — Table structure for table `wp_commentmeta`

    CREATE TABLE IF NOT EXISTS `wp_commentmeta` (

    `meta_id` BIGINT( 20 ) UNSIGNED NOT NULL ,
    `comment_id` BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT ’0’,
    `meta_key` VARCHAR( 255 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
    `meta_value` LONGTEXT COLLATE utf8mb4_unicode_ci
    ) ENGINE = INNODB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci AUTO_INCREMENT =1;

    MySQL said: Documentation

    #1046 – No database selected

    • Prasanna

      at the top of everything type USE ;
      eg if my database name is wordpress then type

      use wordpress;

  7. Ngeshlew

    Needless to say, you are the website that I always come to check whenever I want to migrate my local WordPress site to a live server.
    Thank you guys for the easy steps.

  8. Wafir Manakad

    Hey,

    Thanks a lot.

    I had two queries:

    1. On my new website (destination website), I am copying the old files onto an empty public html folder. That is the way right? There is no need to pre-install wordpress on new site?

    2. Everything was fine right until the end. I am moving my website from one domain to another.

    Finally when I open the new domain, part of the website loads, and partly there are errors. This is the error message:

    Warning: include_once(/home/laprimaa/public_html/wp-content/themes/charlottetheme/charlottetheme/theme/plugin/advanced-customizer/lib/ctAdvancedCustomizerMethods.class.php) [function.include-once]: failed to open stream: No such file or directory in /home/laprimaa/public_html/wp-content/themes/charlottetheme/charlottetheme/framework/createit/ctFilesLoader.class.php on line 143

    Does this mean I have not uploaded my files correctly?

    Any help would be much appreciated.

    Best Regards

  9. sandeep kumar singh

    how we can give the link of other page except home . i have given the url of home but by using your tutorial i have added post query but my site is not working till now .so please give me information to resolve this.

  10. Shubhayan Ghoshal

    Shouldn’t we be replacing the website name -> localhos/{dirname} for ’guid’ column rather than post_content column?

  11. justin

    Okay everything was sailing smooth until I went to import the new database. Upon trying to import it it only puts in wp_commentmeta, wp_comments, wp_links, wp_options and then spits out the error code: ” #1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’?’ at line 2 ”. Now the whole site is down and I don’t have a clue what the heck it is referring too when it says ”line 2”. Line 2 of what? And of course the Manual is so friggin helpful man I’ve never seen such helpful stuff (is there a way to type sarcastically?) Please help…

  12. Frosty

    Thanks mate. You are a diamond! Ran into a few problems, mainly 123 reg php address was incorrect but got there in the end.

    Many many thanks

  13. kathy

    Hi, I am trying to import the database but appear to be getting an error. Any ideas anyone? I’m new to wordpress land.

      • kathy

        I’ve exported my local database and tried to import and it’s returning the below.

        Database: `root_wordpress-trunk`
        Table structure for table `wp_comments`

        #1046 – No database selected

        Any help would be greatly appreciated.

  14. Rob

    Hello,

    I have migrated my site from local to host server. I followed all steps and everything went right but finnaly, I am missing content (posts, pages etc.). Does anybody has any advice?

  15. Yosifov

    Hallo, all worked nice so far, but I reached the step 5 where phpmyAdmin is not giving me the option to edit siteurl and home..

  16. amin

    thanks for this tutorial ,
    I follow this steps and it work correctly i have domain and hosting from godaddy.

  17. Adeel Ashraf

    really awsome work (Y)

  18. kanav

    do i need to copy all of my data on a live server with preinstalled wordpress ?

    like godaddys managed wordpress ?

  19. Claire

    Hello,
    I have followed all of the steps above, and everything has gone correctly up until the very last part.
    I have edited and uploaded the wp-config.php file and now my webpage is just a blank screen and I have not been able to get into edit it in wordpress. I thought I had lost the whole thing…. I changed the urls in php.myadmin back to local/wordpress and can access it again.

    What is going wrong please? Any help appreciated!

    Thanks, Claire

    • WPBeginner Support

      Undo the changes you made to wp-config.php you have probably missed something when editing it.

      Administratör

      • Katy

        Ok I’m having the same problem and I’ve uploaded and reuploaded and changed the wp-config.php file. If I deliberately put in something incorrect it shows error establishing database connection. When I put in the correct information I just get a blank page. Blank page for /wp-admin as well.

    • Jessica CHu

      I’m having this same problem… I’m also not able to get access to wordpress back despite changing the wp-config back to the original settings. Have been through all the instructions step by step. I’m using MAMP and Filezilla on EasySpace… Please help!

  20. Michelle Whittaker

    Thank you so much! This was exactly the step-by-step resource I needed! I did get a dB error trying to import the gzipped file but I went back and exported the dB as a zip file and imported into new dB and that worked fine.

  21. Chris Jacobsz

    Hi,

    Thank you for the excellent article. I am a novice and struggled with Duplicator but got my website up and running by following these instructions step by step. Only one thing, my SQL query to update the broken image links did not work. So I had to do it manually.

    Thanks very much.

    Chris

  22. Mike

    Excellent article!!!

    One thing to note: Please be sure you know the SQL host server name before you begin! It took me a little while to figure out that ”localhost” in the wp-config.php file needed to be changed to the name of my hosting server.

    Everything in the article is spot on and saved me hours of moving my Dev site to my hosted provider….

    • Arjun

      Mike, I am using godaddy and how do I find out my SQL host server name? Currently leaving it as ’localhost’ in wp-config.php file is not helping. Any help appreciated. Been trying but with no luck.

  23. Maggie Walker

    Thank you SO SO SO much for this article!!! I am setting up a WP site for a friend for the first time and it was SO helpful to have this article to walk me through the process of going from local to live! I’m a Front End Dev so the help with all of the PHP, SQL, and FTP was incredibly useful.

  24. darrync

    hmm, not working for me.
    I went through and did this first time and had problems with php.errors.

    So I tried a 2nd time and then i finally got the the ’Error Establishing Database Connection error’

    Then progressed until yes i saw my live site.
    However when i click on the login to WP admin on the now live site, it takes me to a directory of wp-admin and the whole WP GUI is not shown!

    This leads to me think there was an WP install problem…or..?

    Note I am a newbie to WP, PHP, CSS, so please explain as if to talk to a 5yo child please :DDDD

    thanks

    • WPBeginner Support

      You need to update WordPress urls. If you can use the admin area then go to Settings > General and make sure you have the URL of your live site in both fields.

      Administratör

  25. obai and hill

    I am following the steps and they are very clear and works well every time.
    However, this time i followed the steps and when i reached to step 6 where i will have to set up the WP account, the website worked without giving me the error establishing database connection message.
    The problem is i can access the new website wp-admin and the pages redirect me to the testing domain. please help

  26. Dave

    Thanks for the article. Very helpful!

    I have a question. My current live site (fatcow hosting) is running on a very old version of wordpress. My new local site is ready with the latest of everything. I wanted to create a subdomain and test this new site live on different devises and browsers before actually taking it live.

    My question is can I have 2 versions of wordpress running on my hosting site? Will ask the host too, but thought I would ask here as well. So the idea is have my current site which is outdated running while I beta test my new site. Once the new site is all good, then I will replace the old with the current. Good idea? Silly naive thinking from a beginner?

    Thanks for any help!

    -Dave

  27. Bhaumik Dhandhukia

    Thank you very much. My site is live and running.

  28. Shaheryar

    Thank you!!!!!!!!!!! Life saver article.

    Helped me a lot!!!!!!!!! I did everything step by step. Had to change database names accordingly, had to fix broken links manually but hey, its just small stuff to change which I fixed it quickly.

    Really appreciate your time and effort to create such a userful site.

    Thanks.

  29. cyberwaver

    I did everything mentioned here. Mine is am transferring from one host to another host I followed every step here but my website is still showing blank.
    check any help will be appreciated.

  30. Wellbein

    Hello . I tried all the process and it seems lie I’m the only one here who s a problem. The problem is the white screen. I can’t troubleshoot because the screen is blank. OMG. I am very sure that I followed the instructions when in fact it isn’t my 1st time to migrate a local site to the live site. What does the white screen means? Please help!! :(

  31. Don_Kihot

    I have developed child theme locally, what are the steps to upload to live server?

  32. george

    thanks for d dis update, my site uploaded well but d pages are not opening fulling, d post and home page open well but the page just open half well. pls help me

  33. olenyash

    Best guide i have been through so far — on everything. Thank you a tonne

  34. Dale Powell

    This article has saved my life since the day it was published. Can’t thank you enough

  35. Osama

    Great Work !

    This Transfer Method Works Good Work

    Thank You

  36. Ben

    Excellent article. I’ve just followed it step by step for my new business website I’ve been developing on WAMP.

    Keep up the great work!

    Ben.

  37. Rudra

    Really great thanks man

  38. Juan C

    THANKS MAN!!!!!

  39. Matthew Eaton

    At step 5, I cannot alter the site url or home. It won’t give me the option of editing.
    What went wrong?

    • Chris

      There is an icon like ”pencil”, you can click that

  40. Adam

    When I import all files and database I have error 500 on subpages… Why??

  41. anthony

    when I import my database not all of the tables are there. I’m wondering what I’m doing wrong….

    • Jay Doshi

      Firstly You have to select your database(Click on your create database name) and then import your .sql file.

  42. Kailashkumar

    Sir i want to upload WordPress site form local host to live server.

  43. Robin

    One tip maybe I can help someone with this.
    My database from my localserver was far too big to import due to the import limit.
    I have used the 7ZIP program to zip my exported database to a gzip file.
    This has solved the problem for me.

    Thanks for the article! At the moment my website is uploading…

  44. Thijs

    Thank you very much for the tutorial. I regret to say that after step 5 everything went blank.
    The site is gone and I am not able to recover the information.
    I can not believe that creating a simple site can be so difficult.

  45. Robin

    Thanks for the info.

    Tomorrow I am going to replace my wordpress website. I am reading some people are having issues with the thaccess file. Do I have to change the site adress in this file or not?

    Thanks!

  46. Claudio

    This was certainly a very helpful tutorial, but why go through such a lengthy process when you can just export and import everything? There might be a couple of things missing like the media library but that’s really easy to download and upload.
    I’ve been creating child themes for a while and this what i do for my clients:
    – create the whole child theme abs site offline
    -once finished simply select expert everything from the settings
    -install WordPress on the line host
    -select import and point it to the xml file produced before
    -that’s it! All your post and pages should be there now
    – simply install the cold theme you’ve created and tweak what ever looks ”funny”.
    I hope this helps.

  47. Aurang Zeb Khan

    I am trying since 2 days, ”i spend almost full day” but could not succeed. I wanted to try a simple website with only one post so that i could get to know how the whole process will go when i complete my site in the wordpress.
    I have done all the steps successfully but when i try to import database to the hosting website an error occurs and i dont know how to solve this. i am using SmartFTP. can anybody help?

  48. Alex Evans

    Hi, I understand this process, but can anyone send me a link or tell me the process for taking a locally hosted WP site and uploading it to go live, where there already exists a site on the domain?

    For example if I’m creating a new site for someone and now I need the locally hosted site to appear for said domain instead of the hold one.

    I’m confused on how DNS works

  49. Raja Asad

    Hi ,
    please anyone help me out
    actually i did all these steps that mentioned above but still couldn’t upload my site form local host to live server
    what else i do ?

  50. Asad

    Hi ,
    i did these all steps but yet i am able to transfer my site from local to c panel
    please suggest one thing more is there already word press install on c panel or we have to install it there ?

  51. PAUL

    Hi

    Thanks for an excellent article – clear, concise, well-illustrated and easy to follow. I’ve been uisng Duplicator for ages, but it just decided – this time – that it wasn’t going to play fair!

    Everything worked perfectly until Step 7. The SQL query fixed some, but not all, path changes. I then resorted to the Velvet Blues plugin, which fixed all but one path. I’m still struggling to find a solution for the following:

    I have a plugin which utilises its own (two) stylesheets. While Velvet Blues has changed the path to one stylesheet, the other doesn’t want to change. Any ideas how I can effect this manually?

    Thanks and regards
    Paul (”Webbo”)

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.