Drupal on Ubuntu

"Drupal is a dynamic web site platform which allows an individual or community of users to publish, manage and organize a variety of content, Drupal integrates many popular features of content management systems, weblogs, collaborative tools and discussion-based community software into one easy-to-use package."More information about is available at DrupalCanonical does not provide updates for drupal5. Some updates may be provided by the Ubuntu community."

Hence it's better to manually install the latest drupal , from the source , the steps are :

Install the LAMP stack packages

$ sudo apt-get install apache2 php5-mysql php5-gd libapache2-mod-php5 mysql-server

Set a mysql-root password (not the same as a root password, but a password for mysql)

$ mysql -u root

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');

Get drupal

wget http://ftp.drupal.org/files/projects/drupal-6.9.tar.gz

tar xvzf drupal-6.9.tar.gz

sudo mkdir /var/www/drupal

sudo mv drupal-6.9/* drupal-6.9/.htaccess /var/www/drupal

Create a files subdirectory in your drupal default site installation directory.

sudo mkdir /var/www/drupal/sites/default/files

sudo chown www-data:www-data /var/www/drupal/sites/default/files

create the initial configuration file for the default site

sudo cp /var/www/drupal/sites/default/default.settings.php /var/www/drupal/sites/default/settings.php

sudo chown www-data:www-data /var/www/drupal/sites/default/settings.php

Create user for Drupal

mysqladmin -u root -p create drupal

Grant permissions

mysql -u root -p

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

mysql> FLUSH PRIVILEGES;

mysql> \q

Restart apache

sudo /etc/init.d/apache2 restart

Now , you can go to your Drupla page on , http://localhost/drupal

For more info and support do visit :Ubuntu help for Drupal

Share this