1.3 Installing Drupal
When it comes to installing Drupal, you have a couple of options. You can install it locally and keep everything on your own development machine, or you can use a web host and install a preconfigured instance of Drupal in the cloud. I’ll choose the latter and install Drupal as a one-click application on my favorite cloud-based hosting provider, DigitalOcean.
1.Introduction5 lessons, 42:22
2.Creating Content5 lessons, 42:14
3.Working with Views5 lessons, 34:11
4.Further Configuration3 lessons, 18:12
5.Building a Full Site From Scratch14 lessons, 1:24:52
6.Conclusion1 lesson, 02:26
1.3 Installing Drupal
All right, so let's get down to actually creating an instance of Drupal. So, that we can go ahead and start to play with it and learn a little bit about how to build custom websites using Drupal. So, here I am back on DigitalOcean. And in order to basically get started here, all you have to do is create an account. It's free to create an account. It doesn't cost you anything. And you don't actually pay anything until you actually spin up what they're calling droplets. Which are basically virtual machines or slices of virtual machines. And the pricing is actually extremely reasonable. So if you scroll down on the main page here. You're going to see it basically ranges anywhere from $5 a month up to $80 a month. And you don't really pay monthly. You actually pay hourly, which turns into these extremely small amounts. So if you really just want to play around with it for a little while here and there, then this is an extremely economical option. And it's very, very well put together here on DigitalOcean so I would highly recommend using this. But once again you could follow along with some other host, you won't hurt my feelings. But this is what I'm going to do. So I'm gonna come up to the top. I'm actually going to log in because I already have an account. So, let's go ahead and log in. And then once I've done that you're going to be taken to the Droplets page. And this is where I can begin to manage my droplets. Now I don't actually have any droplets at this moment. I've actually got rid of all of mine, did a little house cleaning. But now I want to actually create one. So I'm gonna come up to the right here and I'm going to select Create droplet. This is going to take me to the droplet creation page which is going to give me lots of different options about what I want to be able to do. So as you can see here, I can install a range of different distributions of Linux here. And I can also select the size. This is where your cost is going to be associated as well as some other information. But really what I want to do is I want to be able to install Drupal out of the box. And I wanna have it done for me so that I don't have to worry about it. And so in order to do that, I'm actually going to select One-click apps. And it's going to give you a list of all sorts of different one click apps that it will install for you by default fully configured on a droplet. Without you really having to do anything. And that is pretty nice in my book. So if you take a look at here there are a lot of different things that you can install out of the box. But the one that we're interested here is actually Drupal. Now remember I told you as we went to Drupal.org the latest and greatest version is actually 8.2.5 which this is not. And it's going to actually show us and yell at us a little bit about it once we get things up and running. That this isn't the latest and greatest version. So if you're following along on your desktop and you download a Drupal, and you follow the instructions. And you've got it up and running, you won't see those types of things. But it really is beneficial for you to see them because there will come a time when there's a newer version of Drupal out. And being able to understand how to go through the process of updating it, is very important. So much to select Drupal 8.1.3 and then I'm going to come down a little bit further. I'm going to choose my size and for this course to follow along and do things fairly simply. I don't need an overly powerful box. I'm going to select the $10 a month. And I could probably get away with the $5 a month, but I'm really not going to be using this very much. So it's probably easiest and best for me to actually select the $10 a month. We're not going to worry about any sort of block storage. We don't need to add in any additional storage for our machine. That's not going to be necessary. Then we can select the data center region. So obviously the closest one to where ever you are physically located is probably going to be the most performant. So in my case I'm going to select New York but I could probably get away with San Francisco. But either way it's not a big deal. So I'm just going to leave the default here. Then we can select some additional options, we can site private networking backups. Support for IPv6 or user data, none of which we really are gonna need for this course. Those are just going to add some additional cost which we don't really need. Then we can go and set up some SSH keys, which we could definitely do if we would like. In certain instances that would probably be beneficial as a more secure option as opposed to username password type things. But for this course, I'm going to just leave it alone. And then you can finalize and create. Now you can also select how many of these droplets you would like to set up. So you could actually set up basically a farm of these droplets behind some private and public networking that we could set up here. But that is a little bit over kill for what we're trying to accomplish in this course. And then finally you can choose a host name, I typically don't worry about selecting my own host name. I usually just leave whatever the default is here, and then I'm gonna to go ahead and select Create. So once I have selected Create it's actually going to spit up a new droplet, and as you can see it's already creating it for me. It's showing you the progress here, and after just a few moments everything is going to be set up and ready for me to use. So now as you can see here, my droplet has finished creating. And this little green dot here means that it's actually up and running. And I also get the IP address here which I can copy and take a look at. Now before we start to actually dig into this and see what's out there. Let's go ahead and poke around this guy just a little bit. So I'm gonna go ahead and click on the name of my droplet and it's gonna take me and give me some additional information. What this is going to show me. Is information about the resource utilization that I have been using on this particular system from a CPU and Disk I/O perspective. Now, I can also do some other operations that I can do on any other server that I might have at my house or in my place of work. I can shut it down which is very good if you don't want to be paying for it when you're not using it. So I'd highly recommend turning that off if you don't need it for any particular time you can power cycle the machine. Should you need to reboot it for any sort of reasons, maybe you installed updates or something like that. And then you can do some resizing and things with the networking. Which we're really not too concerned about with at this particular course. One of the other interesting things that you can do is go to this Access link. And you can actually launch the console by clicking on this button. Now what this is going to do is actually launch a console within the web browser. And basically do an SSH connection into it. And then allow you to interact with it that way. Now you can do this, I've done it before. And it typically works pretty well, there are a few limitations. There are going to be some things that you are going to need to copy and paste out of the console where it comes up. And you can't do that in the browser. That's just a limitation of what you can and can't do when it comes to this Drupal when you're using its built in console here. Which is why I recommend it if you were going to follow along and host this in the cloud somewhere. To have an SSH client would highly, highly benefit you in the long run. Just for a couple of reasons I'm going to show you that here momentarily. So the nice thing here is that I can now go ahead and get into my system via however I would like, SSH would be great. But before we actually do that, what I want to do is actually want to go to this URL. And I want to show you what's actually at that URL. So, I'm gonna click this Copy button then and open up a new tab here and I just want to navigate to that address. So, if I navigate to that address, you're gonna see that my website is up and running and I have Drupal installed. So, isn't that cool? So, I don't have to worry about Installing and configuring Drupal or installing and configuring engine X. Or some sort of way to get add to my Drupal instance from the outside world. So all of these things are really really great. So we're going to get in to the nuances of the UI here momentarily. And the way that we're going to have to get into it is by logging in but we can't really do that yet. So I want to show you how to get into the system via SSH. So one of the things that happened as I created my droplet is that I received an e-mail. That gave me this IP address so I knew how to get to my instance. But it also gave me the username and password to allow me to log into it as the root of the system. So once I receive the e-mail, I actually copy that password and I brought it over here. So now what I wanna do is I actually want to SSH into that system so I can get my credentials to actually log in to Drupal. So now I'm going to switch over to my terminal and I'm actually going to use an SSH client. And I want to SSH as root into my system so I need to give it my IP address which is 188.8.131.52. So I'm gonna go ahead and do that, and it's gonna say do I wanna continue? Because it found a new fingerprint, and I'm gonna say yes I do want to continue and it's going to add that in. So now it's gonna ask for my password, and that I have already copied from my email. So I'm just going to paste it in there. And now that I've typed in my password it's going to give me a lot of information about my droplet. And at the very bottom it's actually going to ask me to change my password. So I'm going to put in the current password. And then I'm going to go through the process of creating a new password. And now that's all set up now. Let's go back here and take a look at some of this information. So, it's going to tell me a lot of information about what's going on in the system. System load, the usage of memory and disk space and processes and all that kind of stuff. But also down here it's going to tell me that there is the username and password for my Drupal application. So as you can see the username is admin and this right here is the password. So I'm actually going to copy that. And don't worry, by the time you watch this video this droplet will be long gone. And this username and password aren't going to matter anymore so I don't mind that you see this. So now that I know my username and password I can head back over to my browser. And I am going to go back to my instance. So right here and now I can go ahead and I can log in. So I can log in with my username which is admin and I'll go ahead and paste in my password. And if everything has gone well I should now get a very similar looking site. So I'm gonna go ahead and save that password. So this is what an admin version of a Drupal site looks like. And in the next lesson where I'm going to take you through all the different pieces of this interface. To familiarize yourself with this just a little bit more.