Drupal is open source software maintained and developed by a community of 721,200+ users and developers. Use it to build everything from personal blogs to enterprise applications. It is written PHP and a backend database, such as MySQL. Thousands of add-on modules and designs let you build any site you can imagine. Drupal is free, flexible, robust and constantly being improved by hundreds of thousands of passionate people from all over the world.(DrupalFact)

In this tutorial we will provide you basic step how to install Drupal 7.x with Apache2 + MySQl 5.5 + PHP 5.5 on Ubuntu Server 14.04 LTS.

Step 1 : Setup LAMP Stack

Before installing Drupal 7.x you need to have a LAMP (Linux, Apache2, MySQL5, and PHP5) stack installed on your Ubuntu Server 14.04. If you don’t have these components already installed and configured, you can use this tutorial to learn how to Install LAMP Stack on Ubuntu Server 14.04.

Step 2 : Create Database and User for Drupal

Once Successful login to the Mysql Server, use these command to create database for drupal. In this case I will give the name of the drupal database as dbdrupal, You can call this whatever you would like.

CREATE DATABASE dbdrupal;

Next, we are going to create a separate MySQL user account and give this user a password. On this case I will call the new account “drupuser” and password for new account “drUPp@5sw0Rd“, you should definitely change the password for your installation and can name the user whatever you’d like. You can do this by typing the following command:

CREATE USER drupuser@localhost IDENTIFIED BY 'drUPp@5sw0Rd';

Next, grant all privileges on the database you just created to the new user by running the commands below

GRANT ALL PRIVILEGES ON dbdrupal.* TO drupuser@localhost;

We need to flush the privileges so that the current instance of MySQL knows about the recent privilege changes we’ve made:

FLUSH PRIVILEGES;

And finally we exit the MySQL terminal by entering:

exit;

Step 3 : Download Drupal 7.x

Enter to directory Document root of Apache :

cd /var/www/html

Download drupal 7.x from the drupal project’s website with the following command:

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

Extract the files “drupal-7.31.tar.gz” to rebuild the drupal directory with these command:

sudo tar -zxvf drupal-7.31.tar.gz

This will create a directory called drupal-7.31 in directory /var/www/html

Copy all file on drupal-7.31 directory in to Apache‘s document root , we recommend to use rsync command for preserves permissions and data integrity:

sudo rsync -avP drupal-7.31/ /var/www/html

Or, you can doing it without mentioning Apache’s document root:

sudo rsync -avP drupal-7.31/ .

Once copying all file on drupal directory is complete. Remove directory drupal-7.31 and file latest.tar.gz by typing the following command:

sudo rm -rf drupal-7.31/ drupal-7.31.tar.gz

Give permissions to user and group (www-data) over everything under directory /var/www/html

sudo chown -R www-data:www-data /var/www/html

Step 4 : Install Drupal 7.x from the Web Browser

Complete the drupal 7.x installation through the web browser, in your web browser, navigate to your server’s domain name or public IP address [http://ip_public] or [http://domain]