Home

Lullabot

Lullabot Ideas

We know stuff. We empower you to know stuff too.

Drupal Module Development Deep Dive Week

London, UK
September 20-24, 2010

Video: Installing Drupal 5

Video by Jeff RobbinsDecember 29, 2006 - 3:26pm

New Drupal users will be thrilled to find out that installing Drupal is now as simple as pointing the installer at your database and clicking "install". This video shows how to set up the database and install Drupal 5 all without ever having to type anything at the command line.

Transcript: 

One of the best new features of Drupal 5 is the new installer. I was going to try and amaze you with a 30 second long video showing you how quick it is to install Drupal now but I've decided to slow it down a bit so that everyone can follow along. I'm still going to get it done in less than five minutes though.

Get Drupal 5 (0:23)

First thing to do is to download Drupal 5. By the time you watch this video the page may have changed a little bit but the concept is the same. You go to the Drupal downloads and select Drupal 5 and download it. And it's a really quick download that goes in your downloads folder. And then you need to put it on your web server. Most people will move it using FTP and upload it to their server but I'm actually running all this locally so I'll just copy it into my Apache sites directory. Once you've got it in place the next thing to do is uncompress it, or unzip it. I've got a program that does that but you can also do it form the command line using the gunzip function. I'm also going to rename the directory here to just "drupal-5" so I can find it easier on my server.

.htaccess (1:11)

And then I'm going to show you there's a couple of, well there's one particular invisible file in the directory that you want to be careful if you're copying things around. If you were to uncompress this locally and then copy the files up to your FTP directory you want to make sure you catch that .htaccess file or Drupal won't quite work the way that you want it to. So, just don't miss that one.

The install screen (1:35)

The next thing to do, logically, is to go and see what we uncompressed to see if it works. Here again, I've got this installed locally but you'll probably want to enter the address of your web server here along with any subdirectory that Drupal might be in. Cool. This is Drupal's new install screen. Drupal now prompts you for the mysql or postgresql information along with database name, username ad password right here. We don't have these set up yet so I'm going to set them up separately. A lot of hosting companies will actually provide you with a specific database and specific login information that you should use. If that's already set up you can just enter those in and go to town.

Create a database (2:18)

But we're going to switch over to phpMyAdmin and set up our own database called "drupal". You can actually call it whatever you like but drupal seems appropriate here. We're dropped into the database itself which is now empty. The only user with privileges to access this database is the root user. Since the password will be saved in the settings file within Drupal we can add a layer of security by creating a user that only has access to this one database.

Create a database user (2:45)

We go up to the top level and we click on Privileges and Add a new User. Here again you can call the user whatever you want, but I'm going to call the user "drupal", which happens to be the same name as the database. I'll further restrict access so this user can only access the database from the localhost, this basically means that they can't access the database remotely. Give it a password and I won't select any Global privileges for this user because I don't want them to have access to all the databases, but just our one specific one. So if we scroll down here we can add Database-specific privileges. Our database is called drupal. Here, now we want to have this user to have all permissions for the drupal database. Drupal's install system and also several modules, such as CCK, require write access and alter access to the database so just turn it all on. Now when we go into the database itself you can see that it's empty. There's nothing in there.

Install Drupal (4:03)

We go back over to Drupal and again we get the install screen but now we have the information to enter in.

  • Database name is drupal.
  • Database username is also drupal.
  • And we've got our password all set up.

Under Advanced options you have options for:

  • The Database host if you're using a separate server for your database.
  • The Database port if you're using a non-standard port for your database.
  • And the Table prefix. The table prefix is really important if you're sharing the table between several web applications. That maybe you have several applications that want to create a users table. What you can do is you can prefix all your drupal tables with something. A good prefix is probably something like drupal_ and then your table for users would be drupal_users. We have a dedicated database so we don't need to prefix anything.

And there it is - Drupal's installed. Tadaaa! How long did that take? Hey, five minutes! Perfect.

Create the first user (5:08)

You can now go to the site and create your first user account, which is the super user account. This user has privileges for everything on the site, always. User ID number one. And there you go. Drupal gives you this nasty password for auto-generated kind of thing. Create something that you'll remember here. Scroll down, choose your time zone so your times work right on the site. Submit and off you go. There you go, now you can start creating content and configuring things and all that kind of stuff.

There it is - Installing Drupal 5. Easy.

Comments

Venkat (not verified) on December 30, 2006 - 8:21am

download?

I like your videocasts, but please spare a thought for those without the luxury of a high speed connection. Can you provide a link for downloading this? Clicking on the download tab seems to only load the Quick time player in a browser.

Thanks,
Venkat

December 30, 2006 - 8:58am Jeff Robbins

Up to the browser

That is just your browser that is choosing to display the download in a browser window. Once the file has downloaded you should be able to choose the "Save As..." menu item to save the video file to your hard drive.

Victor Kane (not verified) on December 31, 2006 - 10:19am

not so

Firefox 2.0
Linux
hitting download tab starts up mplayer without a choice, of course.
Right button, save as, ridiculously saves movie (no indication anywhere of its extension) as a 6 MB html
Double clicking it plays it (mplayer knows what it is), but Lullabot can do better :)

December 31, 2006 - 12:02pm Jeff Robbins

Agreed

Yes, this is quite frustrating. We are using the Video module (for Drupal 4.7). Probably best to post this as an issue to the Video project until I can take some time to put together a patch. It seems like this isn't a problem with the Audio module that we're using for the audiocasts, so maybe I'll figure out how to port that code over.

Venkat (not verified) on January 5, 2007 - 11:14pm

Yes and no :-)

I understand that, but I still have to wait for the whole video to download to the browser.

Perhaps you can consider providing it as an attachment as Jeremy Epstein does on his site? This makes it a lot easier to download it directly.

Airtime (not verified) on March 10, 2007 - 1:51am

Right Click on Download Tab

If you right click on the download tab, you can "save-as" the file to you computer.

-Airtime

Jason (not verified) on December 30, 2006 - 11:21am

Additional RDBMS and settings.php

It's great that they added pgsql to the Drupal install script. The articles from the guys at IBM suggested using DB2 as a potential RDBMS. I guess the install script is for making it easier to use pgsql and mysql.

Also, it seems that you didn't have to change the permissions on the settings.php file. That's some great stuff!

Nice video. Keep up the good work :)

Bob (not verified) on February 8, 2007 - 10:50am

Installation fails

Hi
I have 3 different installs of drupal and cant get any to work.
I was wondering if you can show any potential error screens.
You could do this in another file to download.

Would help un Drupal newbies when we cant get past the first hurdle.
brings us to a complete stop.

Cheers
Bob

Liam (not verified) on February 27, 2007 - 7:39am

Thanks for the great

Thanks for the great screencast.
For more novices who prefer to follow screen-cast instructions, I recommend the screencasts at http://www.dudertown.com/

I used these in conjunction with lullabot's.

Dudertown lessons 8,9 and 10 take you thru a few steps needed before you can install Drupal (like installing PHP and MySQL). Halfway thru lesson 10, I switched to the lullabot screencast above since the dudertown screencast skipped a few things on security and was focused on the 4.x drupal installation.
Thanks
L

Edwin (not verified) on April 21, 2007 - 10:26am

Can't get it to work

I have drupal 5.1 in XAMPP on Windows and followed instructions on the video - carefully step by step (which takes loads longer than 5 minutes by the way!). I've done it twice now with a data base called drupal and one called drupal5. Both times I get this message:
Failure to connect to your MySQL database server. MySQL reports the following message: Access denied for user 'drupal5'@'localhost' (using password: YES).

Any advice? Thanks, Edwin

Edwin (not verified) on April 22, 2007 - 2:50am

Got it to work!

Uninstalled drupal-5.1 and XAMPP and deleted the left over files and folders. Overnight Vista came up with updates which, when installed, rattled around the hard drive for 10 minutes. Rebooted - went to apacahe friends and downloaded an updated XAMPP with a note not to install it in "Program Files" on Vista! Unpacked drupal directly into htdocs. Carefully and slowly went through Jeff's instruction pausing and checking as I went ... WACKO! it worked

Thanks

Anonymous (not verified) on October 2, 2007 - 9:26pm

Very, very helpful

Very, very helpful... Thanks. After reading a few descriptions on how to do this, I was still uncertain. If a picture is worth a thousand words, this short vid is priceless.
Thanks,

Mark (not verified) on October 14, 2007 - 1:26pm

Just wanted to say thanks

Just wanted to say thanks very much the video, i am completly new to all this and with this website and the drupal forums i finally got it working,

Anonymous (not verified) on November 26, 2007 - 2:24am

How can I install the Local

How can I install the Local Web Server on Windows Vista?

Addison Berry on November 26, 2007 - 9:57am

Several packages

There are several Windows server packages out there. We have a video that shows how to Install a Local Web Server on Windows XP which uses the WAMP package. While that video is for XP, WAMP also runs on Vista.

You can find other ways to install a local web server in the Local server setup section of the handbook on drupal.org.

Anba (not verified) on January 14, 2008 - 1:41pm

Wow!

Man! Thats a cool video explain everything i need to know on how to install Drupal.
Many Thanks

-Anba

Daniel (not verified) on March 1, 2008 - 2:20pm

Installer

A number of other posters have suggested installing WAMP or XAMPP and then Drupal on top of them. The BitNami Drupal installer stack is a free, all-in-one installer for Apache, MySQL, PHP and, of course, Drupal. It works on Windows, Linux, Mac and should get you up and running in just minutes. It is self-contained, so if you do not like it, just click uninstall and will be gone :)

Anonymous (not verified) on March 12, 2008 - 11:31am

Priceless - Thank you !!!!

Priceless - Thank you !!!!

Dan (not verified) on March 12, 2008 - 6:14pm

Multiple sites?

Thanks for a great video that got drupal working locally for me. I originally tried to get XAMPP working as per the drupal handbook (http://drupal.org/node/161975) but never managed to get it working smoothly, so went with WAMP using Addi's local web server video (http://www.lullabot.com/videocast/install-local-web-server-windows-xp).

This seems great for a single website and installation of drupal, but how do I then go from this to a multisite test setup?

Mark Griffith (not verified) on June 27, 2008 - 5:57pm

how-to-instal-drupal video

Is this video only available in one format?

Recent

Drupal Voices 160: Moshe Weitzman on Page Rendering in Drupal 7

Podcast 9.02.2010

Drupal Voices 159: John Albin Wilkins on Drupal 7 Theming

Podcast 9.01.2010

Drupal Voices 158: Emma Jane Hogbin on PHP for Designers

Podcast 8.31.2010

Command Line Basics: More Editing with Vi/Vim

Video 8.31.2010

Lullabot's Back to School Sale

Blog 8.30.2010

Popular

Drupal Voices 160: Moshe Weitzman on Page Rendering in Drupal 7

Podcast 9.02.2010

Photo galleries with Views Attach

Article 6.01.2009

Drupal Voices 159: John Albin Wilkins on Drupal 7 Theming

Podcast 9.01.2010

Drupal Voices 158: Emma Jane Hogbin on PHP for Designers

Podcast 8.31.2010

Assembling Pages with Drupal

Article 7.17.2010
 
  • Home
  • Services
  • Events
  • Ideas
  • Store

Connect the Bots:

Twitter Facebook YouTube blip.tv All Posts Newsletter
  • Ideas
  • Blog
  • Podcasts
  • Videos
  • About
  • Contact
  • Jobs
  • Services
    • Training
  • Events
    • Training Workshops
    • Other Events
    • Conferences
    • Calendar
  • Products
    • Videos
    • Books
    • Swag
  • Ideas
    • Blog
    • Podcast
    • Videos
  • About
    • Philosophy
    • Team
    • Presskit
  • Contact
    • General
    • Work Inquiries
    • Mailing List