Friday, January 06, 2006

Drupal - Open Source Content Management System

Drupal :

Equipped with a powerful blend of features, Drupal can support a variety of websites ranging from personal weblogs to large community-driven websites.

Implementing Drupal

Step 1 - Download Drupal

Download drupal :

Can do a wget in your Doc Root Directory

I did it in /var/www/html

Step 2 - Untar in DocumentRoot of your webserver

cd /var/www/html

tar -zxvf drupal-4.6.5.tar.gz

Untar it and you will have


Step 3 – Create Database and user for Drupal

[root@mybox easyshape]# mysql -u root -p

Enter password:

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 1 to server version: 4.0.15

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create database drupal;

Query OK, 1 row affected (0.21 sec)

mysql> GRANT ALL PRIVILEGES ON drupal.* TO drupal@localhost IDENTIFIED BY 'password';

Query OK, 0 rows affected (0.30 sec)

mysql> flush privileges;

Query OK, 0 rows affected (0.56 sec)

Step 4 - Plug values in database

Go to /var/www/html/drupal-4.6.5/

mysql -u drupal -p drupal <. database/database.mysql

Step 5 – Configuring Drupal

cd /var/www/html/drupal-4.6.5/sites/default

Make a copy of settings.php and edit the line marked in red.

I made changes to the below line marked in red

* Database URL format:

* $db_url = 'mysql://username:password@localhost/database';

* $db_url = 'pgsql://username:password@localhost/database';


#$db_url = 'mysql://username:password@localhost/database';

$db_url = 'mysql://drupal:password@localhost/drupal';

$db_prefix = '';

Note If you look above in Step 3 I have created a user drupal with password as pasword and a Database name drupal, based on which I have made the above editing.


* Base URL:


* The URL of your website's main page. It is not allowed to have

* a trailing slash; Drupal will add it for you.


$base_url = 'http://localhost/drupal-4.6.5';

Step 6 – Permission to Drupal Folder in Document Root

#chown -R apache.apache /var/www/html/drupal-4.6.5

Now you can open the link in Browser to Configure Your Administrator User:


Now you may click the create first Account and Give a User name
and Your Mail Id

Upon submit you will be shown in your new password

A message like this appears upon submission

Welcome to Drupal. You are user #1, which gives you full and immediate access. All future registrants will receive their passwords via e-mail, so please configure your e-mail settings using the Administration pages.

Your password is SR7jYGPSUB. You may change your password on the next page.

Please login below.

I had created a user – Sriram and reset password to sriram to remember.

You can now login and manage your content.

No comments: