Installing Drupal

From CRAVEwiki

Jump to: navigation, search

Drupal has an automated installation script that automatically populates database tables and sets the correct settings in settings.php file.

Downloading Drupal

The latest Drupal release from http://drupal.org/. Currently Drupal 6.14 is the latest version. The files are in .tar.gz format and can be extracted using most compression tools. On a typical Unix command line, use:

$tar -zxvf drupal-x.x.tar.gz

After Extraction a new directory drupal-x.x/ will be created containing all Drupal files and directories. Move the contents of that directory into a directory within your web server's document root or your public HTML directory:

$mv drupal-x.x/* drupal-x.x/.htaccess /var/www/html

Creating database with MySQL

First, one must create a new database for the Drupal site where, 'databasename' is the name of the new database:

$mysqladmin -u username -p create databasename

Next you must login and set the access database rights:

$mysql -u username -p

At the MySQL prompt, enter following command:

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY
       TABLES, LOCK TABLES ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password';

Unless your database user has all of the privileges listed above, you will not be able to run Drupal.To activate the new permissions, enter the following command:

mysql> FLUSH PRIVILEGES;

Run the install script

The install script will set the base URL, connect Drupal to the database, and create tables in the database.To run the install script point your browser to the base URL of your website (i.e. http://localhost/drupal-sitename or http://www.example.com).

Once you finish running the script Drupal Installation is done. Enjoy working with Drupal.

Personal tools