Volete spostare un sito web WordPress live su un server locale sul vostro computer?
L’installazione di WordPress sul vostro computer (server locale) vi permette di imparare facilmente WordPress e di fare delle prove. Quando spostate un sito WordPress live su un server locale, potete sperimentare con gli stessi dati del vostro sito live.
In questo articolo, vi mostreremo come spostare facilmente un sito WordPress live su un server locale senza rompere nulla.
Perché e chi vorrebbe spostare un sito WordPress live su un server locale?
Se gestite un sito WordPress da qualche tempo, potreste voler provare nuovi temi o plugin. Tuttavia, fare questo su un sito web live può comportare una scarsa esperienza d’uso per i vostri utenti.
Per evitare questo inconveniente, molti utenti creano una copia del loro sito WordPress su un server locale per testare nuovi temi, plugin o fare test di sviluppo.
In questo modo è possibile impostare il tema con tutti i contenuti e testare tutte le funzionalità senza preoccuparsi di rompere il sito. Molti utenti copiano il proprio sito su un server locale per esercitarsi con WordPress e con le proprie capacità di codifica con i dati reali del sito.
Anche se potete fare tutti i test con contenuti fittizi in WordPress, i dati reali del sito vi danno una migliore rappresentazione visiva di come le modifiche appariranno sul vostro sito reale.
Preparazione allo spostamento di un sito locale su un server locale
Per prima cosa, dovete assicurarvi di eseguire sempre il backup del vostro sito WordPress. Esistono diversi ottimi plugin di backup per WordPress che potete utilizzare.
In secondo luogo, dovete installare un ambiente server locale sul vostro computer. Potete utilizzare WAMP per Windows e MAMP per Mac. Una volta configurato l’ambiente, è necessario creare un nuovo database utilizzando phpMyAdmin.
È sufficiente visitare il seguente URL nel browser per avviare phpMyAdmin.
http://localhost/phpmyadmin/
http://localhost:8080/phpmyadmin/
Da qui è necessario fare clic sulla scheda ‘Database’ e creare un nuovo database. Questo database vi servirà in seguito per scompattare i dati del sito live.
Ora siete pronti a spostare il vostro sito WordPress live sul server locale.
Metodo 1. Spostare un sito WordPress live sul server locale utilizzando un plugin
Questo metodo è più semplice e consigliato a tutti gli utenti.
La prima cosa da fare è installare e attivare il plugin Duplicator. Per maggiori dettagli, consultate la nostra guida passo passo su come installare un plugin di WordPress.
Duplicator consente di creare facilmente un pacchetto duplicato dell’intero sito web. Può essere utilizzato per spostare il vostro sito WordPress in una nuova posizione e come plugin di backup.
Dopo l’attivazione, il plugin aggiunge una nuova voce di menu “Duplicator” nella barra laterale dell’amministrazione di WordPress. Facendo clic su di essa si accede alla schermata dei pacchetti del plugin.
Per creare un nuovo pacchetto, è necessario fare clic sul pulsante Crea nuovo pacchetto. Duplicator avvierà la procedura guidata per la creazione del pacchetto e per continuare si dovrà fare clic sul pulsante Avanti.
Il plugin analizzerà quindi il vostro sito web ed eseguirà alcuni controlli di base. Verrà quindi mostrato un riepilogo di tali controlli. Se tutto sembra a posto, fare clic sul pulsante “Costruisci” per continuare.
Duplicator creerà ora il pacchetto del sito web.
Una volta terminato, vedrete un file zip di archivio che contiene tutti i dati del vostro sito web e un file di installazione. È necessario scaricare entrambi i file sul computer.
Ora siete pronti a decomprimere e installare questi file sul vostro server locale.
Innanzitutto, è necessario creare una nuova cartella nella cartella principale del server locale. Questa è la cartella in cui il server locale memorizza tutti i siti web.
Ad esempio, se si utilizza MAMP, la cartella sarà /Applications/MAMP/htdocs/. In alternativa, se si utilizza WAMP, la cartella sarà C:\wamp\www\.
All’interno di questa cartella, è possibile creare nuove cartelle per ogni nuovo sito web che si desidera importare o creare sul server locale.
Successivamente, è necessario aprire la cartella creata per il sito web locale e copiare e incollare sia il file zip dell’archivio che lo script di installazione scaricato in precedenza.
Per eseguire l’installazione, è necessario aprire lo script installer.php nel browser web.
Ad esempio, se si sono incollati entrambi i file nella cartella /mylocalsite/
, si accederà ad essi nel browser visitando http://localhost/mylocalsite/installer.php
.
A questo punto si vedrà lo script di installazione di Duplicator come questo:
Fare clic sul pulsante Avanti per continuare.
Duplicator scompatterà il file zip dell’archivio e chiederà di inserire le informazioni del database del sito locale. Si tratta del database creato in precedenza.
Il nome del server è quasi sempre localhost e il nome utente è root. Nella maggior parte dei casi, l’installazione del server locale non prevede una password per root, quindi è possibile lasciarla vuota.
In fondo alla pagina è presente il pulsante “Test database”, che può essere utilizzato per verificare che le informazioni del database siano corrette.
Se tutto sembra corretto, fare clic sul pulsante “Avanti” per continuare.
Duplicator importerà ora il database di WordPress. Dopodiché, vi chiederà di ricontrollare le informazioni del nuovo sito web che ha rilevato automaticamente.
Fate clic sul pulsante Avanti per continuare.
Duplicator terminerà la configurazione e mostrerà un pulsante per accedere al sito locale. Utilizzerete lo stesso nome utente e la stessa password di WordPress che utilizzate sul vostro sito live.
È tutto, avete spostato con successo il vostro sito live sul server locale.
Metodo 2. Spostare manualmente un sito WordPress live sul server locale
Se il plugin non dovesse funzionare, potete sempre spostare manualmente il vostro sito live su un server locale. La prima cosa da fare è eseguire manualmente il backup del vostro sito web dal vostro account di hosting WordPress.
Passo 1. Esportare il database di WordPress del sito live
Per esportare il database WordPress del vostro sito live, dovete accedere alla vostra dashboard cPanel e cliccare su phpMyAdmin.
Nota: mostriamo le schermate della dashboard di Bluehost.
All’interno di phpMyAdmin, è necessario selezionare il database che si desidera esportare e poi fare clic sulla scheda Esportazione in alto.
A questo punto phpMyAdmin chiederà di scegliere il metodo di esportazione rapido o personalizzato. Si consiglia di utilizzare il metodo personalizzato e di scegliere zip come metodo di compressione.
A volte i plugin di WordPress possono creare le proprie tabelle all’interno del database di WordPress. Se non si utilizza più quel plugin, il metodo personalizzato consente di escludere tali tabelle.
Lasciate invariate le altre opzioni e fate clic sul pulsante Vai per scaricare il backup del database in formato zip.
PhpMyAdmin scaricherà ora il file del database. Per maggiori dettagli, consultate il nostro tutorial su come eseguire il backup manuale del database di WordPress.
Passo 2. Scaricate tutti i file di WordPress
Il passo successivo consiste nello scaricare i file di WordPress. Per farlo, dovete collegarvi al vostro sito WordPress utilizzando un client FTP.
Una volta collegati, selezionate tutti i file di WordPress e scaricateli sul vostro computer.
Passo 3. Importare i file e il database di WordPress sul server locale
Dopo aver scaricato i file di WordPress, è necessario creare una cartella sul server locale in cui importare il sito locale.
Se utilizzate WAMP, allora dovrete creare una cartella all’interno della cartella C:\wamp\www\ per il vostro sito locale. Gli utenti di MAMP devono creare una cartella nella cartella /Applications/MAMP/htdocs/.
Dopodiché, è sufficiente copiare e incollare i file di WordPress nella nuova cartella.
Successivamente, è necessario importare il database di WordPress. Aprite semplicemente phpMyAdmin sul vostro server locale visitando il seguente URL:
http://localhost/phpmyadmin/
Poiché il database è già stato creato in precedenza, ora è necessario selezionarlo e fare clic sulla scheda Importa in alto.
Fare clic sul pulsante “Scegli file” per selezionare e caricare il file di esportazione del database scaricato nel primo passaggio. Dopodiché, fare clic sul pulsante “Vai” in fondo alla pagina.
PhpMyAdmin decomprimerà e importerà il database di WordPress.
Ora che il database è stato configurato, è necessario aggiornare gli URL all’interno del database di WordPress che fanno riferimento al sito live.
È possibile farlo eseguendo una query SQL in phpMyAdmin. Assicuratevi di aver selezionato il database del vostro sito locale e poi fate clic su SQL.
Nella schermata SQL di phpMyAdmin copiate e incollate questo codice, assicurandovi di sostituire example.com con l’URL del vostro sito live e http://localhost/mylocalsite con l’URL del server locale del vostro sito.
UPDATE wp_options SET option_value = replace(option_value, 'https://www.example.com', 'http://localhost/mylocalsite') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET post_content = replace(post_content, 'https://www.example.com', 'http://localhost/mylocalsite'); UPDATE wp_postmeta SET meta_value = replace(meta_value,'https://www.example.com','http://localhost/mylocalsite');
Questa query sostituirà i riferimenti all’URL del sito live dal database e lo sostituirà con l’URL del localhost.
Passo 4. Aggiornare il file wp-config.php
Il passo finale consiste nell’aggiornare il file wp-config.php del sito locale. Questo file contiene le impostazioni di WordPress, compresa la modalità di connessione al database di WordPress.
Andate semplicemente nella cartella in cui avete installato WordPress sul vostro server locale e aprite il file wp-config.php in un editor di testo come Notepad.
Sostituite il nome del database con quello creato in phpMyAdmin sul vostro host locale.
Successivamente, sostituire il nome utente del database con il nome utente locale di MySQL, solitamente root. Se è stata impostata una password per l’utente root di MySQL sul localhost, inserirla. Altrimenti, lasciatela vuota e salvate le modifiche.
/** 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');
Ora è possibile visitare il sito locale in una finestra del browser inserendo l’URL in questo modo:
http://localhost/mylocalsite/
Sostituite “mylocalsite” con il nome della cartella in cui avete copiato i file di WordPress.
Questo è tutto, il vostro sito WordPress live è ora copiato sul vostro server locale.
Speriamo che questo articolo vi abbia aiutato a capire come spostare facilmente un sito WordPress live su un server locale. Potreste anche consultare la nostra guida su come creare facilmente un sito di staging per WordPress a scopo di test, o su come spostare un sito WordPress dal server locale al sito live.
Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e Facebook.
Syed Balkhi says
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!
Joseph says
Hi, just came across this tutorial today, I found out about some of the steps from other tutorials, but my problem is with the SQL Query. I get the error # MySQL returned an empty result set (i.e. zero rows). I followed all your steps about changing site names etc but cant work this one out and so obviously i cant then connect to the local site. I used the Duplicator before on another site but it wont work so good on this one because of all the images on my photo site, ie timeout issues. Kinda going around in circles here, so help would be good.
Thanks,
Joseph
Yarina says
Joseph, check that the table prefix on the SQL tables you are working with are the same. I had this issue before when I didn’t realize that the theme I was copying from had a non typical prefix (wp_extra-text instead of just wp_). When you create the new db on phpMyAdmin, make sure that the prefix matches that of the old db. Hope this helps!
Alan OldStudent says
I tried using Duplicator, and that worked with one minor glitch. So then I dropped the database and tried the manual method. All steps proceeded well until it came time to import. I recreated the database and went to import. Afterwards, I got this error message: “#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 ‘default’, ‘This is the default profile, used when no profile is specified.’, ‘a:’ at line 7”
To me that looks like gobbledygook. Do you have any idea what went wrong and how I can do the import manually?
Regards,
Alan
WPBeginner Support says
This could be a syntax error or conflict caused by using different versions of MySQL. To solve this, when exporting your database choose the same MySQL version as your local install. Also make sure that you are using the same character set for both database tables.
Admin
Em Cloney says
Just a quick thing I noticed: the Duplicator file is called “installer.php” rather than “install.php”.
Ben says
I noticed the same thing. Great article, though. So glad I heard about this plugin from you guys.
wpva says
Hi I decided to do it manually
I created a database for my WordPress site on my local server and tried to import the database that I downloaded before to my computer but im getting this error message:
SQL query:
—
— Database: `aguilar_jmln1`
—
— ——————————————————–
—
— Table structure for table `gm_AnythingPopup`
—
CREATE TABLE IF NOT EXISTS `gm_AnythingPopup` (
`pop_id` int(11) NOT NULL,
`pop_width` int(11) NOT NULL DEFAULT ‘380’,
`pop_height` int(11) NOT NULL DEFAULT ‘260’,
`pop_headercolor` varchar(10) NOT NULL DEFAULT ‘#4D4D4D’,
`pop_bordercolor` varchar(10) NOT NULL DEFAULT ‘#4D4D4D’,
`pop_header_fontcolor` varchar(10) NOT NULL DEFAULT ‘#FFFFFF’,
`pop_title` varchar(1024) NOT NULL DEFAULT ‘Anything Popup’,
`pop_content` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`pop_caption` varchar(2024) NOT NULL DEFAULT ‘Click to open popup’
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
MySQL said:
#1046 – Aucune base n’a été sélectionnée
Kin says
It is saying that no database was selected.
Yeah I got that as well.
You need to make sure that you clicked on a database before hitting the ‘import”, if not the admin tool will try to import the .sql file on nothing!!
TMo says
Wonderful tutorial on how to manually go through this process. Thank you for the clear directions and photos!
Shane Levine says
Hi, is Duplicator an acceptable method for keeping a backup website? I have been using BackWPup but it looks like Duplicator also allows you to create a backup…
Dennis Crayon says
Hi I am not sure if I just got lucky but I was able to download and setup the local version quickly. The only problem I am having is that I have to set permalinks to default which is fine locally will I be able to set them back to post name later when I push the whole thing live? Thanks just getting this far is great
WPBeginner Staff says
Yes, you can change permalinks after putting your site live.
Felix says
Dennis, I am new to wordpress but I have so far learnt key configuration issues. Could you lease hel on changing permalinks from default to post name?
Iftikhar Raja says
Just an observation to share.
If you choose custom structure as permalink, it might not work. The work around is to chose default permalink and save the changes. It worked for me after several hours of head scratching
Hope it helps
Mario says
If you’re using WAMP you need to turn on mod_rewrite to enable custom permalinks.
Click Wamp -> Apache -> Apache Modules -> rewrite_module
WPBeginner Staff says
It is usually enabled by default.
isboleas says
Perfect! I did it manually just in wp-config.php must change and the line
/** MySQL hostname */
define(‘DB_HOST’, ‘127.0.0.1 ‘);
With ip appear in phpmyadmin in left up corner.
Anindyo Yudhistiro says
I’ve followed all the steps, but I still can’t see my database in my local wp. I still only have Hello World post.
I’ve imported it, change all the url’s, and many row has already affected.
Keith Davis says
I used the manual method but the SQL query wouldn’t work for me.
I had to go into the wp-options and change url in siteurl and home table and then all was fine.
Keith Davis says
Hi guys
The Duplicator method looks good.
Do you know how much free disc space you need to create the packages?
Nana says
Any ideas why it gives me a “Welcome to the famous five-minute install” screen?
WPBeginner Staff says
It is possible that your WordPress URL and Site URL are set to localhost/xammp. If you can access the admin area go to settings and set it to your WordPress install directory.
Je says
I checked and it’s definitely not set to that. It is so strange!
Je says
I figured it out. It was the W3 cache in the htaccess file causing problems. Thanks for you help and for this awesome tutorial!
Jen says
Great tutorial, I did everything exactly like you said….I thought it was working until I tried to change the theme and it wouldn’t change. Then I started trying to navigate to other pages and it took me to localhost/xammp. Everytime. Any ideas?
dion says
Hi. I did all of this(using the manual option, but when I click on any option, ie login or one of the menu options, I get “the requested URL … was not found on this server”
wagster says
If you copy the SQL query straight off the screen above, you will get the line numbers as well, which will throw an error like the above. Click ‘View source’ and copy the clean code from there.
MrDev says
Thanks for this article. I tried the manual route of moving a WordPress site to localhost, however my stylesheets are not loading. For some reason the ‘href’ is not being set on all my stylesheets. Any idea what might be going on?
WPBeginner Staff says
We would feel more confident recommending BackupBuddy for backups.
NikkiC4lyf says
Would you recommend using the Duplicator plugin for doing backups as well as moving sites?
Kin Tatsu says
Great tutorial! The problem I’m having is when I login to to wp-admin with the same login and password I used for my live site I get “ERROR: Invalid username. Lost your password?” The username and password are correct for the live site but incorrect for the localhost site. I tried to retrieve password with my email address but it says that my email address is not registered. Any ideas?
pbr says
I have only one word about this steps…AAWWEESSOOMMEE!!!!
StefsterNYC says
Did you check your Prefixes?
pels says
got same error
StefsterNYC says
You may have missed a table or something. Do a search for the old prefix. Also make sure you’re using a fresh new WP-CONFIG. I find that sometimes that messes things up.
StefsterNYC says
Sorry for the delay Mark. Not sure I understand your question. Hopefully I can answer something here.
If you started with a config file and it originally started with the wp_ and you didn’t use a custom one you’ll be fine. Just remember the config has to match the DB. If you worked locally and are migrating everything to a live site and you use the same DB and same Config that you worked locally with everything should be fine. Just remember to change Username, Password and Hostname.
The key here to remember here is Prefixes. So many people teach you how to do this and that but they miss the one thing that can mess it all up for you. And that is the Prefix.
And User Roles, if missed can cause a major headache when adding Admins manually. So be careful when changing and working with prefixes. They are absolutely a great way to tighten up WP sites. I highly recommend using a custom prefix always. dbh_234_ something like that is a great way to protect your site(s).
WPBeginner Staff says
If your live site’s mysql host is not localhost, then you need to change it to localhost. You may also need to change the database name to the database on your local computer. Same goes for DB username which is usually root on local servers, and db password which is usually blank.
Mark says
Hi just to be clear the password in the config.php file should be the same as the one you use for myphpadmin? because that seems to work for me?
StefsterNYC says
Great tutorial. I believe one thing was missed. Prefix. For those of you that use a prefix in the config, make sure when you query the db you change the wp for the query to your prefix. Otherwise your query won’t reset the urls correctly.
Mark says
If I have a local install and I move the database live, the prefix will remain the same correct? Do I need to do anything?
Cypherinfo says
Error 404: Object not found: The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
” I followed all of the steps you wrote.
Sophie says
These instructions are exactly what I needed. Thank you!!!
However, I seem to have encountered a problem…
When updating the URLs in my database for those of the local server, it returns a #1064 – error in your SQL syntax near line 3. Could you possibly suggest a solution?
Would I need to include the port number when updating the http://localhost/ part of the code?
Please Help!!
Vtin says
One more newbie trouble here! Sorry for the inconvenience.
Of course, I think I’ve done everything correctly (probably not). When I try to access the site via localhost, in the screen appears the index.php file line by line, instead of loading it.
Any ideas?
W says
This was fantastic. Super quick and worked exactly as intended.
Paul Sahota says
Can you please show how to move a live wordpress site to local using backup buddy on mac using MAMP. I have tried multiple times but it does not work for me. I can easily do the opposite.
thanks
Jeremy says
After transferring the live site to my local server (wamp), I navigate to the destination in browser and get a “Not Found” wordpress error. The site’s navigation loads though and when clicked it takes me to the live site. Am I missing something rudimentary?
Kin says
I am getting the same thing. I followed all the steps. Then came back to check again, but the error remains. I am seeing that a couple of people above had the same problem as well. Any idea guys of why this is happening?
Sinuhe says
Thank you!!! I just finished moving my site and a subdomain to a new hosting service and it worked like a charm. I am no techie, actually I am philosopher
I really appreciate you taking the time to explain this info in detail.
Sam says
Hey, I did everything the same way you said in manual method.
after setup,
I can see homepage of my website on local server.
But when I try to navigate to other page, I get following error:
“Not Found: the requested URL /test/logistics was not found on this server.”
Please help
Bill says
I just ran into the same issue. I went into site/wp-admin. Then went to Setting > Permalinks and just clicked Save Changes. It updated something and all of my links work.
Look at that! My first contribution to the community.
Isabela Santos says
thank you! But I had to disable it for it to work…
Mark says
Brilliant!
John says
Awesome. Worked great! Thanks for posting this.
Natalia says
Hi,
I followed your tutorial on doing it manually to the T, but I still get an error message. I am pulling my hair, here…
I’m pretty new to WP and I still have to figure out how to actually enter the new content and modify the files… but I can’t even get it to work locally
This is the message I get:
“Error establishing a database connection”
Which I don’t understand, because I did everything as you said in your tutorial.
Help, please!!
Natalia says
Tried it all over again a second time and still same error message… I’m going crazy
Natalia says
I even tried in a remote server and I got the same error message. I don’t know what I’m doing wrong… there must be a path somewhere that I’m forgetting about and it’s just not reading the right db…
Someone, please, help!!
WPBeginner Support says
Natalia, the most common cause for this error is incorrect database information. On your live site, you need to edit your wp-config.php file. Make sure that the database information in this file matches the database you have created for your live site.
Admin
Kathi Kostiuk says
Thank you, your site is super helpful. New to WP, inherited a site, got it localhost so I can learn/test. When trying to ‘upload’ a pic, get this: C:/wamp/www/testsite/wp-content/uploads. Is its parent directory writable by the server? No errors shown in phpMyAdmin, permissions on folders, users look right. Could you possibly direct me to a solution? Have looked everywhere I can think of. Thanks.
WPBeginner Support says
When you moved the site to localhost, did you change the siteurl and homeurl options? If you didn’t then you need to add these two lines to your
wp-config.php
file1-click Use in WordPress
Admin
Kathi Kostiuk says
Thank you, will do that.
Julie Rondeau says
Hi,
Great tutorials! Thank you, however i keep getting an “Unknown” Error code 0 from the Duplicator Plugin when trying to create the packages. Is there any other way you could recommend? Any help would be really appreciated.
Thank you so much,
Best from Paris.
J.
WPBeginner Support says
You can also manually backup your localhost site and restore it on live server.
Admin
Rehan says
Best tutorial ever!!
Ashley says
Hi! Thank you so much for your great tutorials! Everything worked out great, but I when I was supposed to “resave permalinks” it wouldn’t let me login. I got that fixed and I am logged in now, but where do I go to resave them now that I don’t have that pop up? I’m assuming this is why when I try to click on posts it gives me a “not found page” ? Thanks in advance!
WPBeginner Support says
You can save permalinks from Settings » Permalinks.
Admin
Jesse says
Can I ask how you fixed the login problem? I’m getting the same issue.
Yarina says
Hi! This all worked great until I had to login to the wp dashboard, my login didn’t work and even after changing it manually in the users table, I couldn’t log in, any ideas…?
Angela says
Thank You! I’ve been trying to do this for some time now. I’ve watch several YouTube videos but could not get it to work correctly. This was so easy….the best thing ever. Again thanks!
Ivan says
Hi,
I followed your instructions to the letter (and sing lol), but was not successful. I think it has something to do with WP installation. I have not installed it, just copied it.
Brett Golding says
Didn’t work for me just ended up with a blank white home page after I ran the program. Re tried 3 times.
WPBeginner Support says
Checkout how to resolve white screen of death issue.
Admin
Jason Moore says
Thank you! This is was too easy!
ron says
Hi, I’m trying to do exactly this, but I get a 500 Internal Server Error right after I put the database details and hit the Run Deployment button, I get the progress animation and after about 10 or 15 seconds I get the error.
I was looking at the error logs located at C:\wamp\logs and I could only find this line that seemed somewhat relevant: “Invalid command ‘RewriteOptions’, perhaps misspelled or defined by a module not included in the server configuration”.
I’ve successfully used duplicator in the past, but going from webserver to another webserver.
Any ideas?
WPBeginner Support says
Please take a look at our guide on how to fix 500 internal server error in WordPress.
Admin
Usama Noman says
Thanks, seems like this is a tutorial posted upon my request
Thanks guys you are doing good.
WPBeginner Support says
Yes it is Usama. Thank you for suggesting it to us.
Admin
Jamie Mannion says
Good guide, but I think you missed the part where you update wp-config.php with the new database details – name is the new name, username is ‘root’ and password is empty.
I tried it manually and it all looks good but the links take me to the WAMP server configuration page, even though the URLs are updated – can’t figure it out. I can get the home page and admin, but that’s it. Cheers!
WPBeginner Support says
Thanks for pointing out updating wp-config.php thing. We have updated the article.
As for your redirection issue. Try deleting .htaccess file from wordpress installation on your localserver.
Admin
Jamie Mannion says
Awesome, thanks! I removed the .htaccess, then visited the permalinks option page and saved and now we’re good! I should admit, the only reason I knew about the wp-config.php settings is because I’ve read your previous articles. Keep up the great work!
Kin says
I put a question earlier today, but this worked out for me great.
Thank you.
Shahraar Khan says
I do this manually. Just zip the files from the server and download it… export the database and replace all the links in my text editor. just a 5 min work.. But anyhow your tutorial is also a very good alternative.