Watch videos with subtitles in your language, upload your videos, create your own subtitles! Click here to learn more on "how to Dotsub"

Install Drupal Locally with Dev Desktop

0 (0 Likes / 0 Dislikes)
In this first lesson of the Learn Drupal Series we're going to be looking at how to install Drupal locally on your own computer rather than having to deal with a web server that's out on the web. This is particularly important when working with development versions of code, because you may be introducing security vulnerabilities. You don't want people necessarily getting in to those on the web. It's also just a lot easier to work on your own local computer and do all the things you have to do, whether you're online or off. So what we're going to be doing is looking at how to get a local web server set up that you can run your websites on and then we'll be downloading and installing Drupal 8. In this video we'll be looking at the Drupal Ladder. And if we scroll down here and look at the very first step down at the bottom of the ladder it's to install Drupal locally. When we click through there, you're going to see there are three steps that are involved in this lesson. Install the Dev Desktop. Download Drupal 8 and then Launch Drupal 8 on our Dev Desktop. This is going to get a local version of Drupal running. In order to install Drupal locally, we also need to have a web server on our local computer. There are many ways to achieve this. But in this video we're going to be using the Dev Desktop. You can find Dev Desktop at Acquia.com, and on their free download section. Once you get there, we're going to download the Drupal 7 version, pick the operating system you're on. I'm on a Mac. So I'll go ahead and click the download button for the Mac version. It's going to pop up a dialogue asking for some info, but I can click this link down here that says "No, thanks - Just take me to the download." And I'm going to go ahead and download that to my desktop. It might take you a few minutes. So, once you've downloaded it, go to where you downloaded it – I put it on my desktop. You'll notice this is a .dmg. On Windows it would be an .exe. You're going to install it just like any other application in your operating system. So I'm just going to go ahead and go through the the normal steps run the installer here, and it's gonna - this will open up and start an installation wizard for us to kind of walk through. As we work our way through the installer, first it's going to let me know what I'm installing, which is always a good thing to know. So we can see all that. License Agreement. Locations – where does the Dev Desktop actually live? That's in my Applications folder. And then all of my sites - the site it's going to build and any other sites I want are going to be in my Sites folder, which again is typical. But you can set those wherever you want. Ports – I would recommend you leave these alone, so that you don't accidentally conflict with other Apache and MySQL stuff that could be running on your system, like MAMP. Um, I'm going to go ahead and fill in basic Drupal settings for my first Drupal site – which it's gonna go ahead and build for me. Review, and then we'll click Next. And it's going to begin the installation. This is going to take a while, so you probably want to go grab a cup of coffee... and then, you know, come back to it. As this finishes up, it's going to run through it's cleanup here and then I launch the new Dev Desktop. It's all good and well – we now have Dev Desktop, so we have a local web server with some Drupal. But we have Drupal 7. We need to get Drupal 8. So let's go back to our Lesson. And if I click the link for download Drupal 8 on this one you'll see that we have a link that takes us directly to wherever we need to be, which is pretty handy. Um, and uh, so this is releases for Drupal core and I can select the 8x API version and then I'll get the 8x dev – the development version for Drupal 8 that we want to play with. I'll also show you how you can do this without using that direct link though. It's handy but you may not have that. If I go to Download & Extend you'll see this is for Drupal 7 but we just want Drupal 8, so I'm going to go to Drupal core directly, so I can get sort of the full list. And under here, again, there's only 7 and 6 but if I go down to this link underneath that says "View all releases" – that's where I can get the latest development work, uh – and this takes me back to that same screen I say I want version 8, and then you can see I have Drupal 8x dev. Which is exactly what we want for helping on core. Download zip or tarball, whichever you want. So I'm going to click this and download it. I'm going to go ahead and save it to my Sites directory. You'll see that's where the the initial Acquia Drupal site was put but the rest of my sites are here as well. So I'm going to save it directly into that directory. And once I have that downloaded, go back to sites here and then I'm going to unzip that. So that I can get my Drupal goodness. That creates a folder called drupal8xdev. You can see this is Drupal core. Its files look different. And I can also rename this folder to anything I want, just for convenience sake. So I'm just going to name this Drupal 8. But you can name it whatever you want to. Ok so now onto our final step for this lesson – which is to actually get our new Drupal 8 site that we just downloaded running on our Dev Desktop. We're going to start off by launching the Acquia Dev Desktop. Get that running. And you'll see we have a settings button here. So, there's some standard settings stuff in terms of how you want to use it in ports but the important stuff that we need to do – is first of all we need to change our PHP version. 5.3 is required for Drupal 8. So we need to make sure that we change that or our Drupal 8 site's not going to work right. So let's apply those settings before we proceed. It restarts things. Everything looks good. So now I'll go back into here and actually set up my site. And you'll notice that the original, uh site that we had setup here is now on 5.3 so that's – I'm using the right version of PHP first. Now I'm going to go browse to that Drupal 8, uh code that I downloaded, right? So, I'll just browse there. I want it to create a new database for me. I'm just going to call it drupal8. We can be creative. I also want to set up a subdomain so that this is the url I'll go to for this particular site. And I'll go ahead and click that. And it actually does the Drupal installation for me. Sets up the database and things, so now I just run through the regular Drupal installer and I have Drupal 8 installed. We'll run through and do the site information. Real quickly... Site Name. I need to just fill out – this is just the normal Drupal installation, it's just that the Dev Desktop went ahead and created the database for me and kind of got all of that set up. Which is handy. And yes, I will be particular and change it to the right city, not just the timezone. And then once I save this, um here is my new Drupal 8, localhost web site, so that I can begin playing with what's going on with Drupal 8 world, and helping out with making it better.

Video Details

Duration: 7 minutes and 5 seconds
Country: United States
Language: English
License: All rights reserved
Genre: None
Views: 103
Posted by: drupalizeme on May 10, 2012

In this first step of the Learn Drupal Ladder we will install Drupal on our computer. This follows the instructions to Install Drupal locally on learndrupal.org. We start by getting and installing the Dev Desktop, which is an all-in-one web server which comes with Drupal 7. We then install our own Drupal 8 site in Dev Desktop.

If you do not wish to use Dev Desktop as your local web server, we have videos for three other web servers, based on operating system:

Installing WampServer (for Windows)
Installing MAMP web server (for Mac)</

Caption and Translate

    Sign In/Register for Dotsub to translate this video.