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 Local WordPress Development Local WordPress Development Migrating WordPress from Local to Live Server

Maja B.
Maja B.
12,984 Points

Migrating WordPress to a Live Server

Hi, when I migrate my local WordPress project to a Live Server all the plugins become inactive - therefore the site is completely dead and non-functional.

Anyone knows what should I do?

1 Answer

Can you list how you're migrating the site? One really easy way is with this plugin. Also, be sure to check your file permissions.

Maja B.
Maja B.
12,984 Points

Hi,

I do it like this:

+I change the config.php: new database name, new user name, new pass (these names I will use when I will create a new database on Live Server ... I change them in the config.php advance so I do not need to do it later), I also define WP_HOME and WP_SITEURL)

  • I upload all the WP files to Live Server with FTP

  • I create a database, user, password on the Live server. I use the names I have previously used in the config.php

  • I export database from Local server and import it on Live Server. It says that it is successfully imported. I can see the typical WP tables.

  • I call my site url, http://www.example.com and get thrown to http://www.example.com/wp-admin/install (looks like the project is not connected with the database)

But why? I've used exactly the same steps to migrate some other WP project and it worked just fine.

But with this particular WP project it does not. What cpuld be wrong and how to find it?

Thanks in advance if you can help.

P.S. Just to let you know. In the wp_options table the site and home URL are updated to http://www.example.com.

Maja B.
Maja B.
12,984 Points

Hi, Dustin,

Happy to inform you that I've succeeded migrated WordPress from local to live server. The reason why it was not working was the case sensitivity of database table names.

Cheers, Maja

Most likely because if you're on a Windows machine, it's not case sensitive, however, Linux servers are. Glad you got it worked out, and thanks for letting us know!

Maja B.
Maja B.
12,984 Points

Hi, yes I am on Windows.