How To Install Drupal On Ubuntu 14.04

Want to support HowtoForge? Become a subscriber!
 
Submitted by howtoforge (Contact Author) (Forums) on Wed, 2014-08-06 14:55. :: Linux | Ubuntu | Web Server | Apache

How To Install Drupal On Ubuntu 14.04

Version 1.0
Author: Srijan Kishore
Last edited 04/Aug/2014

This document describes how to install and configure Drupal on Ubuntu 14.04. Drupal is an open source content management platform powering millions of websites and applications. It’s built, used, and supported by an active and diverse community of people around the world.


1 Preliminary Note

This tutorial is based on Ubuntu 14.04 server, so you should set up a basic Ubuntu 14.04 server installation before you continue with this tutorial. The system should have a static IP address. I use 192.168.0.100 as my IP address in this tutorial and server1.example.com as the hostname.  You must have a LAMP server installed in Ubuntu 14.04 as mentioned in the tutorial to continue further.

2 Database initialization

I will create  the database for the Drupal as follows:

mysql -u root -p

Here we are adding database=drupaldb user=drupaluser and password=drupalpassword:

CREATE DATABASE drupaldb;

And a new MySQL user to access the Drupal database

CREATE USER drupaluser@localhost IDENTIFIED BY 'drupalpassword';

GRANT ALL PRIVILEGES ON drupaldb.* TO drupaluser@localhost;

Reload the MySQL database priveliges to activate the new MySQL user:

FLUSH PRIVILEGES;
exit

 

3 Installation of Drupal

We will first make a directory temp in which I will the download the latest version of the Drupal as follows:

cd /temp
wget http://ftp.drupal.org/files/projects/drupal-7.30.zip

We need to install unzip as by default it is now installed:

apt-get install unzip

Further moving ahead, please note that Drupal would always be dependent on a specific PHP module. Hence, if it is not yet installed on your server, you must immediately download php-gd using the following command:

apt-get update
apt-get install php5-gd

unzip the Drupal zip file in the following created folder:

unzip -q drupal-7.30.zip -d /var/www/html/

It will create a folder as /var/www/html/drupal-7.30, I will rename the folder as /var/www/html/drupal. Here I am removing the version name only:

mv /var/www/html/drupal-7.30/ /var/www/html/drupal

Now give appropriate permissions in the directory

chown -R www-data.www-data /var/www/html/drupal
chmod -R 755 /var/www/html/drupal


Now proceed to the web installation of Drupal. Go to the URL http://192.168.0.100/drupal:
Proceed with Standard and hit Save and continue.

 
Click to enlarge


Now by default English is selected, continue with Save and Continue:


Click to enlarge
  

Now we will proceed towards the login page by giving the  database information as selected at the time of the Drupal database creation:

In my case it was

Select MySQL, MariaDB, or equivalent
Database name = drupaldb
Database username = drupaluser
Database password = howtoforge
Datbase host = localhost


Click to enlarge
 

Give the information as per your choice, here I am using like:

Site name = Drupal site
Site e-mail address = admin@example.com
Username = admin
Email-address = admin@example.com
Password = howtoforge
Country = India
Default time-zone = Asia/kolkata +0530

The above values are user's specific, you can customize it according to your choice. Further press Save and Continue:

Click to enlarge
 

Click to enlarge


This will be your install Drupal.

Click to enlarge


Now proceed towards the Visit your new site.

Click to enlarge



Congratulations! You now have a fully functional Drupal instance on your Ubuntu 14.04 :)


7 Links


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.