Welcome back to Introduction to Drupal. We walked through an install process of Drupal on our local Desktop. We installed Drupal to the C drive using the MOWES Portable application. This is one method of installing Drupal and it, and it works for any kind of sandbox development site that we want to run. Our site's not actually, the site we've been working on here is actually in production. You can't actually browse to it over the web. It's only going to work in a local host environment from your specific Desktop or from a USB drive if you plug your USB into a computer. There will come a time when you're going to run or rollout your site to a production environment and there are a huge amount of different scenarios for this. I mean, you could have a dedicated server, Linux server or Windows server that you were going to use as a web server and you wanted to run Drupal sites off of that. That might be at your company, at your business. You may work closely with your system administrators to set up that type of configuration. What I'm going to do is I am going to show you how to do a production install of Drupal. I'm going to walk you through this process on my shared hosting environment. I use a host for my own development server called HostMonster. They're a company that does web hosting. It's not, you know, there are tons of different web hosting companies. Many of them have pluses and so you're going to have to explore and find the one that you want to use. They run a huge gamut as far as pricing and different functionality and services that they all provide. There's many of them. You know, from GoDaddy to SiteGround to HostMonster to Lunarpages to all sorts of different types of web hosting out there. I chose HostMonster as my shared host environment. What I'm going to do is I'm going to walk you through, this is the main HostMonster site here and it, you know, this is shared hosting. It's nothing fancy and it's pretty reasonably priced per month so it's a shared host environment. It's not dedicated. I don't have shell access to my server so I do everything with the Control Panel that they give me. So what I'm going to do here is I'm going to log into my Control Panel to actually show you this process. So this is a Linux server. I'm actually logged in now via the HostMonster Control Panel, which is cPanel. Many hosts use cPanel. There are other utilities out there like Plesk for instance. And again, your host will have their own specific type of Control Panel. This gives me access to my server and it tells me how many MySQL databases I have running and all sorts of information about my server, specifically to my server. It has links to phpMyAdmin, FTP accounts on the MySQL database administrator. You can also get to that from the main Control Panel area here. Down here in the files area there's a link to File Manager and if I go ahead and click on that I can browse to my home directory on my web server and then to the public HTML directory, which is basically where all the websites live. So here are all the sites that are installed on my server. There's quite a few of them. I run a lot of different development Drupal sites. So what I've done here in the public HTML is I've installed Drupal multiple times and each Drupal site gets its own folder. So that's the File Manager. I also have access to set up MySQL databases and to a phpMyAdmin. So I can go to phpMyAdmin very similar to how we're running it in local host except this is a phpMyAdmin on a live server but basically it looks the same. It's got all my databases in there. Now, I don't, they don't actually allow access to set up privileges in user accounts via phpMyAdmin so I have to do that with the MySQL Database Wizard. So that's the first thing we're going to do. Let's go a head and set up a database for our Drupal site that we're going to install. It'll be a Drupal 6 site. Oh, and by the way, this also tells me PHP and MySQL versions that I'm running on my production server; 528 PHP and 567 for MySQL. So let's click on this MySQL Database Utility and you may have this with your specific shared host as well. I'm going to go ahead and do that. I'm going to go ahead and create a new database here and we'll call this Drupal 6 Test and we're going to go ahead and create this database. Notice that on shared host environments, a lot of times what the shared host will do is they'll pre-pend the database name with the user account name. So Variant C, you actually need that in the configuration file when you run your install for Drupal. So that's important. So I'm just going to copy that and we'll do a run of, we'll just run, let's see. We'll copy, we'll actually remember that. Variant C Drupal 6 Test. I'm just going to try to run Word Pad here, we'll paste it in there so that we remember. OK, good. Go back. So we've created the database. Now what we're going to do is we're going to scroll down here and we're going to create the user name. And we'll just do the same here. Actually seven characters max so let's do DRU Test. DRU Test. And it prompts me for the password. OK. So we'll remember that user equals DRU Test. And this is also going to be pre-pended with the Variant C. So we have our user and we have our database. Now, the trick with MySQL Wizard is that you actually have to add the user. So here is my user and I have to add it to the database. And give it all privileges. Very similar to what we did with phpMyAdmin. Make changes. Good. OK, so now we have this information and I'm also going to add that to my Word Pad document just so I remember. And we're ready to go here. So we have our MySQL database created using our MySQL Wizard in cPanel and when we come back I'm going to go ahead and run the Drupal install and show you how to do that on this shared host environment.
| Course: | Introduction to Drupal 6 |
| Author: | Trevor James |
| SKU: | 33992 |
| ISBN: | 1-935320-43-2 |
| Release Date: | 2009-05-01 |
| Duration: | 11.5 hrs / 114 lessons |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |