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 trialVictor Mattos
2,602 PointsHow 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
Treehouse Guest TeacherHey folks!
Here is my recommendation:
- Backup your WordPress site using BackUpWordPress or another backup plugin that gives you a file and database backup.
- Download and unzip this backup on your desktop (or wherevs)
- FTP in to your new server and upload all the files from the backup, except for the database file ending in .sql
- Login to your hosting control panel and create a new database. Make sure to note the db name, username and password.
- Navigate to phpMyAdmin from hosting control panel and upload the .sql file from the backup.
- Open up the wp-config.php file on the server
- Update the database information in the wp-config.php with the new database info you just setup.
- Add the url to the site in the wp-config.php file
- You should now be able to go to the live WP site and login
- Install the Search and Replace plugin
- Do a find all and replace for "http://your-local-url.com" with "http://your-live-url.com"
James Barnett
39,199 Points- You will need to purchase domain name & hosting
- Then you need to install Wordpress on your hosting account
- Then use an FTP client to transfer your files
Jerome Douglas
3,501 PointsI believe there is a walkthrough here http://teamtreehouse.com/library/websites/build-a-simple-website/launching-the-website
Rasmus Willemoes Paulsen
12,436 Points@James Barnett
Arent you forgetting about possible URL issues, which has to be adressed? :)
Victor Mattos
2,602 PointsThanks Zac!
Anthony Hind
5,715 PointsAnthony Hind
5,715 PointsWordPressBackUp has this plug-inn been removed I am struggling to find it ?
Zac Gordon
Treehouse Guest TeacherZac Gordon
Treehouse Guest TeacherAnthony Hind my bad!!! It's BackUpWordPress!!! http://wordpress.org/plugins/backupwordpress/
I'll fix that now.
Anthony Hind
5,715 PointsAnthony Hind
5,715 PointsNo Problem had me baffled for a while there :)
Anton Moritz
5,490 PointsAnton Moritz
5,490 PointsZac Gordon Where is the database file (.sql)? I've been searching through my files but can't find it.
Zac Gordon
Treehouse Guest TeacherZac Gordon
Treehouse Guest TeacherAnton Moritz when you do a complete backup it will be in the list of files ending in .sql
Anton Moritz
5,490 PointsAnton Moritz
5,490 PointsZac Gordon I am a complete moron. I looked through the files on my server, not the backed up ones. Thanks alot!
Zac Gordon
Treehouse Guest TeacherZac Gordon
Treehouse Guest Teacher:p