Join Morten Rand-Hendriksen for an in-depth discussion in this video Setting up an FTP account, part of WordPress DIY: Setting Up WordPress.
- As I mentioned in the previous movie we need to able to gain access to the hosting account through FTP so we can manage the files on the server. Now, my recommendation here is to create a new custom FTP account for every project and every site you set up under your host. And there's a simple reason for this. There's a good chance you'll end up setting up multiple different sites under one hosting account and then have different domains point into different places. And if that's the case, it's a good idea to have one FTP account set up for each of these sites.
That way when you log in you'll always land in the right place and you'll never have to worry about sending the wrong files to the wrong location. There's also a security element here. FTP is not 100% secure and if you make an FTP connection over an insecure network like in a coffee shop or at an airport there's a very, very minute chance that someone might be able to pick up your password and if you use the master FTP account the one that was provided to you by the domain host when you set up your account you will give that person who hacks into your account the ability to control all your files.
On the other hand, if you have a custom FTP account you can simply go on and delete that account and even if someone managed to get in they would only be able to get in to the files that are under that specific account. So, what I have right now is SiteGround. I'm logged into the Admin panel and I've navigated to the C panel page. This is C panel and I've also opened FileZilla on my computer. Currently it's not logged into anything so what I'm going to do now is create a new FTP account and as I do this, move the credentials into FileZilla so I can immediately make a connection and make sure that everything works.
To set up a new FTP account I'm gonna go to the section where I can manage all my FTP data. And in C panel, that's found under Files. Now, if you're hosting provider is using some other host management tool you'll also be able to find it. It's usually labelled FTP Accounts or just FTP. I'm gonna go into FTP Accounts here and if I scroll down you'll see I already have this master account I was talking about that points a root location of every single file I can upload. What I wanna do now is create a new account that points directly at where I'm gonna place my new WordPress site.
So, I'm gonna start by creating a username. So, I'll say wpdiy and here you see it's also appended with @wpdiy.net and when I create this log in name I'm also immediately gonna go to FileZilla, open my Site Manager, and add a new site, call it wpdiy and then go and put in this information. So, I'll say Logon Type, Normal, and then I'll put in the username right away, email@example.com then I'll create a password and here I'm gonna create a very strong password with the password generator.
I'll copy it, say yes, I copied it, click Use Password, and then immediately jump over and paste it in. And finally, inside FileZilla I also need to provide a host. Now, in most cases your host name will be the same as your site name. So, in my case that would be wpdiy.net. There are some cases where you'll be provided with a different host name or maybe an IP address. If that happens, you'll actually be notified by the host as you set up your FTP account.
Now, the final thing I need to do here inside C panel is to change to the directory that I'm pointing at. Because by default, C panel will always assume when you create a new FTP account, you also want to create a new folder for that account. But that's not what I want to do in this particular instance. I want to point this particular FTP account directly at the public folder that's accessible through the web because that's where I'm gonna place WordPress. So, I'm gonna change this URL here to just public_html. That is the public folder you gain access to when you just visit the wpdiy.net domain and now I'm gonna click Create FTP Account.
Once the account has been created you can see it down here. I can now manage it by changing the password, changing the quota, so how much data I can upload or download from it and I can also configure my FTP client. But I've already done that. So, now the last step is to see if I can connect to my domain through FTP by clicking on Connect in FileZilla. And if everything goes right, you should see some thing like this. On most hosts, you will find a folder called cgi-bin or just cgi.
This is not something you need to touch and in some cases you'll also have a file like this, .ftpquota. So, that's the actual quota file that's associative with my specific FTP log in now that I'm in. That means what you see in this folder here shouldn't match what I see if I go visit wpdiy.net. So, here you see cgi-bin and if I go to my browser and go to wpdiy.net cgi-bin. This means I now have FTP access to the public folder in my hosting account and I'm ready to get started uploading WordPress into my host.
Ready for the next stage? Find more courses in this series by searching for Wordpress DIY.