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

Carly Franklin
Carly Franklin
1,114 Points

How to migrate a locally developed wordpress site to live server on ubuntu?

Hi all, I've been going through the wordpress track, developed my wordpress site locally, and now I want to migrate it to a live server....but I have no idea how to set up an FTP Server on my OS.

I am using Ubuntu, which I love. I am new to it though and don't know how to use it very well. I am familiar with using the terminal. I installed vsftpd, but am not sure what to do with it next. I have read the documentation, but I am not really sure where to go from here. Anyone out there using linux who can give me some pointers?

5 Answers

Jacob Herper
Jacob Herper
94,150 Points

I'm not familiar with Linux, but on Mac OS I am using Filezilla, which is also available for Linux and works just fine. On there you just need to enter your FTP server details and connect, no need for the terminal.

To migrate your WP installation, make sure to add

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

with your new domain to your wp-config.php file, in order to change the preset paths (in your case most likely localhost) to the new server. Sometimes it's also necessary to update your sql export, as links to images and other media are still set to localhost in your DB.

Carly Franklin
Carly Franklin
1,114 Points

Hi Jacob, Thanks for the answer. I do use FileZilla on Windows, and I find it very user friendly. But are you talking about the FileZilla Client or server? I had it in my head that I could only migrate the website using the FileZilla Server, and Client is all that's available for Ubuntu.

Does anyone have any experience using FileZilla on a linux os? Is it very different from running it on Windows?

Jacob Herper
Jacob Herper
94,150 Points

Where do you want to migrate your website to in the first place? You only need the FZ server if you want to put files onto your local machine from external devices in your network or even outside of it.

If you want to upload your WP website onto a web server or webspace, you use the FZ client to connect to the server and upload the files through it.

Hey Carly, the Digital Ocean website is usually an excellent resource to figure out how to do things on Ubuntu servers (they also have great stuff on other Linux flavors). I recommend this article if you're working from a server via SSH in the command line.

I've done it before myself, so let me know if you run into any trouble and I'll do my best to help out.

Carly Franklin
Carly Franklin
1,114 Points

Jacob - thanks. I was able to find a good video on installing and using Filezilla on Ubuntu, and I probably wouldn't have continued looking into that if you hadn't said something, so I appreciate your suggestion. Still learning and easily confused at this point!

Nick - really appreciate your answer. That article is exactly the kind of instructions I was trying to find, FileZilla is doing the trick for what I needed right now, but this article and some of the other content on Digital Ocean are definitely going to make me feel like I have a better grasp on my system and how to use it.