Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

How to transfer a local site to a web server?

Hi,

I am developing locally an wordpress site (using MAMP), now I want to move this site to the actual sever. How can I do this? Is there any tutorial explaining this?

Thank's

5 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hey folks!

Here is my recommendation:

  1. Backup your WordPress site using BackUpWordPress or another backup plugin that gives you a file and database backup.
  2. Download and unzip this backup on your desktop (or wherevs)
  3. FTP in to your new server and upload all the files from the backup, except for the database file ending in .sql
  4. Login to your hosting control panel and create a new database. Make sure to note the db name, username and password.
  5. Navigate to phpMyAdmin from hosting control panel and upload the .sql file from the backup.
  6. Open up the wp-config.php file on the server
  7. Update the database information in the wp-config.php with the new database info you just setup.
  8. Add the url to the site in the wp-config.php file
  9. You should now be able to go to the live WP site and login
  10. Install the Search and Replace plugin
  11. Do a find all and replace for "http://your-local-url.com" with "http://your-live-url.com"
Anthony Hind
Anthony Hind
5,715 Points

WordPressBackUp has this plug-inn been removed I am struggling to find it ?

Anthony Hind
Anthony Hind
5,715 Points

No Problem had me baffled for a while there :)

Anton Moritz
Anton Moritz
5,490 Points

Zac Gordon Where is the database file (.sql)? I've been searching through my files but can't find it.

Zac Gordon
Zac Gordon
Treehouse Guest Teacher

Anton Moritz when you do a complete backup it will be in the list of files ending in .sql

Anton Moritz
Anton Moritz
5,490 Points

Zac Gordon I am a complete moron. I looked through the files on my server, not the backed up ones. Thanks alot!

Rasmus Willemoes Paulsen
Rasmus Willemoes Paulsen
12,436 Points

@James Barnett

Arent you forgetting about possible URL issues, which has to be adressed? :)

Thanks Zac!