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

Oscar Sandoval
Oscar Sandoval
1,315 Points

Migrate to Desktop Server from WAMP

Hello all,

I was wondering if anyone can explain to me how to migrate a WordPress site I was developing locally on WAMP over to Desktop Server.

Will I have to Back-Up the site using any sort of back-up plug-in or do I need to copy files over manually from the WAMP www directory?

Thanks in advance for any help you can provide. Cheers.

O.S

Jeremy Cornwell
Jeremy Cornwell
11,106 Points

I'm not sure how a desktop server hosts a site on a network but if it's anything like migrating to a live hosted site, you'll have to copy the directory from your www folder as well as exporting the database. I used the following tutorial as a reference for taking a local site live.

http://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-from-local-server-to-live-site/

Again, I'm not sure how a desktop server works exactly and if you're planning on other computers accessing it. If it's acting as another disk drive you only need to make some changes to your wamp configuration. I found the following directions if you're trying to change only the www directory.

For wamp 2.5 on Windows, use a text editor, e.g. notepad++ to edit c:\wamp\bin\apache\apache2.4.9\conf\httpd.conf

  1. Change DocumentRoot "c:/wamp/www" to DocumentRoot "c:/my/new/path" (Note slash direction). This will change the location where files are served from (~Line 230).
  2. Change <Directory "c:/wamp/www"> to <Directory "c:/my/new/path"> (Note slash direction). This applies permissions from the old directory to the new one (~Line 252).
  3. Copy all content from c:\wamp\www to your new directory (c:\my\new\path), including index.php
  4. Edit c:\my\new\path\index.php and change line 40 $server_dir = "../"; to $server_dir = "C:/wamp/"; This changes the location where config files etc. for wamp are read from. Change $suppress_localhost = false; to correct projects links (~Line 30).

1 Answer

Oscar Sandoval
Oscar Sandoval
1,315 Points

Thanks Jeremy. I truly appreciate you taking the time to help me out and fast too. I'm going to definitely try that. It's nothing big, I'm the only one in charge of the project at the moment and it's about two sites only. So I'm not looking for anything that needs to sync across multiple computers. I just wanted to essentially move everything from WAMP to the DesktopServer, since I heard it's a better option for local development of WordPress sites.