Drupal is one of the famous content management systems (CMS) in the world. You can create multi-functional dynamic web sites with CMSs. With this short how-to, let’s get a clean Drupal installation done in an Ubuntu Environment.
Let’s use the terminal (command line) to do server level operations.
[1] Download the drupal files from the web site and extract the files to the web root (/var/www/)
$ wget http://ftp.drupal.org/files/projects/drupal-6.14.tar.gz && sudo cp drupal-6.14.tar.gz /var/www/
(you’ll have to provide the sudo password to copy the files to the web root)
$ cd /var/www/ && sudo tar xvvzf drupal-6.14.tar.gz

Now that you have placed the files in the web root. Let’s create a user and a database for drupal.
$ sudo useradd drupal (Give what ever the user name you want and the password)
Create a MySQL database.
$ mysql -u root -p
mysql> create database drupal;
mysql> grant all on drupal.* to drupal@localhost identified by ‘password’;
mysql> flush privileges;

Okay now we have the database and credentials for drupal user to manipulate that database.
For ease of use let’s rename to drupal-6.14 to just “drupal”.
$ sudo mv drupal-6.14 drupal
You need to do a small tweek before you begin the installation.
The Drupal installer requires that you create a settings file as part of the installation process.
1. Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php.
2. Change file permissions so that it is writable by the web server.
Make the ./sites/default writable for the time being until the installation ends.
chmod 777 ./sites/default (Make sure you make it to 755 later)
Take the web browser and start the installer.

You need to fill out the database name, user, password to connect your drupal site to the MySQL database. And make the defaut directory write protected after installation.

After you log in to Administrator panel, you can customize the theme, add new modules, manipulate the site and do many more things.

If you have any computer related problem, you can ask it at our Question & Answer portal and our experts will answer your queries.


I believe there needs to be a chmod -R 777 ./default/sites/. The recursive sets all directories below it also on 755.
Cheers