No Hassle Install Guide for Drupal
This sample install guide uses mySQL 4.0, cPanel, and phpMyAdmin as its default install tools. You may need to adjust your steps accordingly for different software or versions.
The first thing you'll need to do is head on over to Drupal.org and download the latest stable Drupal release (in a compressed format - for example .zip). Browser to where you downloaded the file and extract it to where you would like your Drupal installation to be. Note: for CVS testing please read the (link) CVS section below first to set up a version control environment.
Once you have registered your domain and gotten access to cPanel, log in, and make sure you have a default email address set, a catch-all address, and any forwarding addresses if necessary.
Next, click on "MySql Databases," and under Databases: type in a database name after the Db: prompt and click on "Add Db." So far so good? Next, type in a username and password in the Users: section and click on "Add User." Finally, you are going to click on "Add User to DB" in the Databases: section, making sure that "Privileges: All" is checked (no other check marks necessary). You will then see the screen display connection strings - no need to write them down, but it is a good idea to write down your full username and database name (the names you chose are usually prepended by your hosting account username).
The database and user privileges have now been created. In order to add the Drupal database structure we are going to access phpMyAdmin by clicking on "phpMyAdmin" on the bottom of the page. Once in the phpMyAdmin environment, click on your database name, and then in the navigation tabs on top click on "SQL." Here we are going to browse for Drupal's SQL file which contains a series of SQL statements that the server will run to produce Drupal's database tables. Browser for the "location of the text file" to the directory where you extracted Drupal, and select the database file in the /database directory corresponding to your SQL version (often database.4.0.mysql). You can leave compression on "Autodetect;" click 'Go' and the tables will be created.
You need to make some changes to the <root>/sites/default/settings.php file to let Drupal know where your database is and how to access it. Open the file and edit the following lines:
For those of you upgrading, visit my Lists of Files Changed by Drupal Upgrades to see a list of specific files you may upgrade so you do not have to replace everything. If you are installing Drupal for the first time, simply upload the entire contents of the Drupal directory you extracted. Using the FTP access information given to you by your hosting provider, upload the files to your public_html (or www) folder on your domain's server.
Once your database is setup, settings file edited, and files are uploaded, browse to your new domain name. You will be shown a screen asking you to setup your first Drupal account. If you don't see this screen, search the site using the search box on the left or browse directly to my listing of Drupal Error Messages to see if your error is listed. If not, search Google for "Drupal [insert your error message here]". Once your first account is setup you are ready to setup your Drupal installation for general use.
I am going to walk you through a series of steps to get Drupal running with commonly used features and modules.
One of the great things about Drupal are its customizable themes. You can modify Drupal themes with simple knowledge of stylesheets. By browsing to administer -> themes you will see a list of the default themes installed. Feel free to select some of the alternate themes (bluemarine is the default - it is recommended to switch your site back to the default bluemarine theme during upgrades in case an upgrade creates an incompatibility with an alternate theme).
Click on configure next to the theme you've decided to use. This will give you access to theme-related settings, most of which are self-explanatory. You can set global settings that take effect when specific theme settings do not override them.
Click on administer -> modules and select the following modules if they are not already selected:
In order to get the most out of your Drupal installation, I recommend installing the following addon modules. First, I'll show you the basics on how addon modules (contributed modules) are installed.
Obtaining Addon Modules
Browse to Drupal Modules and select the modules you are interested in (some basic recommended ones will be discussed below). Download the version corresponding with your version of Drupal and extract and upload the module directory into your <root>/modules/ folder.
Installing Addon Modules
Some modules install without database support. For those that do not, access phpMyAdmin (as described above), click on SQL again, and this time browse to your module's (ie. module.mysql) file (in <root>/modules/) and click on "Go." This will add your module's table and SQL data to your Drupal database. Next:
The above modules still merely represent a core installation. For most purposes there are many more modules that will prove useful and that I almost added to the above list. The include instant messaging modules such as privatmsg, the Google sitemap module gsitemap, modules supporting feed (RSS) functionality and syndication, and more. Check out my List of Popular Drupal Modules for an extended list.
We're almost done! After installing your modules (you can always add more later), browse to administer -> access control, where you may define access control for user types and add user roles. Typically some useful access roles are turned off by default. By turning these on for anonymous users you let non-members access content, view forums, read news feeds, etc. which you probably want them to be able to do so you can better promote your site. Some typical recommendations for anonymous access include:
Again, you can customize these according to specific user roles, so if you have content managers with different access privileges you can differentiate their authorization levels here.
All Content © 2005 - 2008 Contract Web Development, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Powered by Drupal
Drupal Video Install Guide?
Very nice - exactly what I needed
Just curious - I remember reading that there is a video install guide somewhere. Do you have that as well or know where I might find it?
Drupal Video by Lullabot
Here you go: Installing Drupal 4.7 Video
Thank You
wow! nice article. thank you for sharing.
Useful post
Friend ! I save this post at computer. Very useful. Thanks !
Configuring Drupal Installation
Wow that is a lot of stuff you need to configure just for one installation. I'm going to try and add this to my auto installation system for my web hosting business.
thx
thanks for the post!
Well written Drupal guide
Thanks for this, probably one of the more coherent explanations of how to get up and running with Drupal. And definitely the one I'll be printing and using.
So Thanks from Dave
Best Drupal Hosting
Drupal is free but getting it installed and hosted can be quite expensive. Do you offer hosting services?
Drupal hosting
Hello,
We offer hosting, but currently only for existing clients. We often refer people to Dreamhost. If you use the promo code "CWD50" you'll get a discount - up to 47% off depending on the package you order.
UK Hosting
I agree, not many UK hosting companies allow people to install drupal on their servers, most are aimed towards wordpress. It's worth shopping round first and contacting the web hosts to see if they can accommodate your drupal site.