Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
Author Tom Geller demonstrates how to create and publish a complete web site with the powerful tools in Acquia's hosted service, Drupal Gardens. The course shows how to leverage the pre-built page layouts and add custom styling using the ThemeBuilder tool; integrate rich site features, such as surveys, user ratings, and media galleries; and push content to Twitter and Facebook. The course also covers transitioning from a Drupal Gardens site to a self-hosted Drupal site. Exercise files are included with the course.
In the video "Exporting sites," I showed you how to get your site out of Drupal Gardens. We now have all the files we need in this folder, which we've named "ExpCalExport." I also have the Acquia Drupal Stack installer, or DAMP, running on my computer, and that's where we'll be importing our site into. If you need any help with DAMP, watch the videos about it in either of my lynda.com courses, "Drupal 7 New Features" or "Drupal Essential Training." Here, I'm bringing things into DAMP, which is running on my Desktop computer.
I won't talk about how to move things to a remote server because there are simply too many variations. Again, "Drupal Essential Training" and other lynda.com courses are the places to go for more about that. I just want to take another look inside this folder to see what we have here. The entire folder is the Drupal software. Inside there is the sites folder, and inside there is default. This is what our site actually is, all of the files of our site, that is. If we open the files folder, we see the pictures that we imported and the xmlsitemap and some other things like that.
The information about our site, however, is in the database, which is this Explore_California.sql. Finally, we have passwords for the two administrative users in this credentials folder. Okay, let's get going. We go into the Acquia Drupal Stack Installer, and we go to the Sites pane. Now, there is a couple of ways of doing this. You can either click Settings and then click around. My favorite way of doing it is to use this pop-up menu and go to More. That takes us straight here. You might think we were creating a new site, but what we're actually doing is importing these files and that database file.
So I click Import and browse to look for the files. There it is, ExpCalExport. Click OK. And then I look at the Database area. I do have a database dump, so I'll go ahead and find that. There it is, .SQL, and open it. Finally, we have to give this database a name. I'm just going to all it ExpCal, and for the Server, it's ExpCal. Again, you can use any name that you like. Then click Import. This process will take a little while, and it's done.
To go to the site, click it here, and then click Go To. Your web browser will open. It came up, but it didn't actually load all of the theme information. I found that this sometimes happens, but it's easy to correct. Just reload your browser. I did that by hitting Ctrl+R on Windows, or Command+R on Mac, and there we are. One thing though: we're looking at this as an anonymous visitor. You might remember that I remove the user login block when I did this design earlier. If this ever happens to you, it's easy to get back to.
Just go up to the URL, and add "user" to the end, and now we can log in. So let's do my old username, explorecalifornia, and my old password. Oh! It didn't work. Remember, when you export a site, it gives you new passwords. So I'm going to go back to my Desktop and take a look at what exactly those passwords are. I open the folder, go to this credentials file, and open it up with my favorite editor, and there it is.
This is my new password. So I'll copy that, go back to my site, and just paste it in the Password field, and log in, and there we are. I don't have to remember that password. Now we're in the site just as we were before on Drupal Gardens. There are a few things you should do here though, before you go on. First of all, you're going to want to change the password to something that you can remember. So I'm going to change it back to what it was on the Explore California site on Drupal Gardens. So I paste that password in there, and then I enter my new password here, and confirm it.
Yup! They match, and I am all set to go. Our site is now up and running. Congratulations! I just want to go back and point out a few differences between how the site ran on Drupal Gardens and how it's running now. First, let's go up to People. As we scroll down, we see that our old user califanjoe, he came over just fine. There is one thing about that though: his password changed, so when he tries to log in, it's going to actually reject him.
It's a good idea when you move your site to put something at the top of the page that says, hey, we moved off of Drupal Gardens, or just, we move this site, and you're going to have to reset your password. It's fairly easy for them to do. When they try to log in, they'll be rejected, and there'll be a link that says create a new password. You'll also notice we have this user1 with the random string after it. This is actually the super user of the site. You, explorecalifornia, are no longer the super user. You might want to start using this user1 user instead of this one, because that user1 person is going to have all of the access that you would want to have as the site administrator.
To do that, you would of course change this person's password and username, delete the old explorecalifornia user. However you decide to do it, it's not a bad idea. If you want to change the username and password, just click on Edit next to the name, as I just did here. After you've finished importing your site and changing passwords and usernames, be sure you delete those two special files from your Drupal installation. The first one, remember, is that credentials file, which includes the usernames and password; and the second is the SQL file that ends in .SQL.
If you don't do this, and somebody knows the names of those files, they may be able to get information that will let them control your site. There are two other large changes I want to point out. First of all, you're used to clicking on Appearance and getting that Theme Builder. Well, no more. Now you get the natural Drupal Appearance page, and here is the theme that we designed, along with Seven-- the administrative theme--and some other ones that we started to use when we were designing our site. You could of course switch among these themes however you want.
The important thing is you don't have access to the Theme Builder anymore. If you want functions similar to the Theme Builder, there is a module called Sweaver, which we'll find it drupal.org/project/sweaver. Download and install that, and then you'll have something Theme Builder-like. And if you need any help with that, watch my Drupal Essential Training course. The last difference I want to show you is under Modules. There is a lot of new stuff up here that you wouldn't have seen in Drupal Gardens. That's because those modules were installed, but they were hidden from you.
Well, now that you have complete control of your site, they've been made more available to you. Let's just take a quick look down here, and we'll see some of them. This Email Login that's part of Login Toboggan is something new. Some of this Media stuff is new. There is an awful lot of stuff here, and again, I won't go into all of the details. But if you won't find out about these modules, take a look at the drupal.org site. Congratulations! If you've followed this course from the beginning, you've taken the site from conception to completion.
You now know more than just how to create a great site on Drupal Gardens; you know a little about CSS, web design, and core Drupal management. Whether you decide to build one site or a thousand, to move them off of Drupal Gardens and into self-managed hosting, or just to leave them there, you're now ready to take the next steps.
There are currently no FAQs about Drupal Gardens Essential Training.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.