What is Drupal & Why Use It?

Drupal is a commonly used open source Content Management System used for building websites and applications. It offers endless variety of customization and hundreds of themes and plugins are available online. It is coded in PHP, requires Linux Hosting with a web server like Apache, Nginx etc to process the HTTP requests and uses a database management system like MySQL or MariaDB.

Drupal Installation

In this tutorial, we will go through the installation and setup of a Drupal website via Command line interface.

Before starting with the Drupal installation we need to install the pre-requisites. This can be installed easily with yum utility.

yum install php-mbstring php-gd php-xml

Steps to do:

1) Download the Drupal files.

2) Create a MySQL database for the website and privileged user.

3) Installation via Front end or web browser.

 

1) Download the Drupal files

Change the working directory to the Document Root of the website

cd /home/pickawebtest/www

 

Download the files archive with wget

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

 

Untar or extract the archive

tar -xvf drupal-7.15.tar.gz

 

Move the extracted contents to the Document Root or data directory of the domain or website.

mv drupal-7.15/* /home/pickawebtest/www/
mv drupal-7.15/.gitignore drupal-7.15/.htaccess /home/pickawebtest/www/

 

Now all the Drupal files will be present in the Document Root of the website. We can now move onto the next step.

 

2) Create a MySQL database and privileged user

Goto MySQL prompt as the admin or root user

mysql

 

In the MySQL prompt, type the following to create a database,

CREATE DATABASE drupal;

 

Create a MySQL user who can access the database,

CREATE USER [email protected];

 

Set password for the MySQL user

SET PASSWORD FOR [email protected]=PASSWORD("password");

 

Grant privileges for the MySQL user to access the database

GRANT ALL PRIVILEGES ON drupal.* TO [email protected] IDENTIFIED BY 'password';

 

Flush privileges for the changes to take effect

FLUSH PRIVILEGES;

 

Exit from the MySQL prompt

exit

 

This will create a new database and the privileged user. Of-course you can change the database name, MySQL username and password as you wish.

 

Here is a screenshot you can refer.

drupal

3) Installation via Front end or web browser

We can go into the installation wizard by just accessing the website in the browser (eg: http://pickawebtest.com)

Here are the screenshots for your referral.

drupal_1

Select the Standard installation profile and click on ‘Save and continue’. This will take you to the language selection page shown below.

drupal_2

Select the preferred language and click ‘Save and Continue’. Next is the Database information page.

drupal_3

Specify the database name, MySQL username and password which we created in Step 2. This data will be saved in Drupal configuration file. Next page is the website information page.

drupal_4

In this page the Drupal admin page credentials are set. Make sure you remember this username and password as this will be credentials to access Drupal admin panel.

This completes the installation process of Drupal.

drupal_5

If you click on the ‘Visit your new site’ link in this page, you can see the default website. You can access the Drupal website admin panel with the URL:- http://your_domain.com/admin (eg: http://pickawebtest.com/admin/)

So there you go. If you need any help setting up or hosting drupal just use our 24/7 live chat support to ask & we can assist you.

Leave a Reply

Your email address will not be published. Required fields are marked *