Sponsored
Web Penetration Testing

Drupal CMS Installation in Ubuntu

Hey Folks, today we are going to configure Drupal CMS in ubuntu operating system. Drupal is content management software. It’s used to make many of the websites and applications you use every day. The Drupal project is open source software and anyone can download, use, work on, and share it with others. You can extend it with any one, or many, of thousands of add-ons. Modules expand Drupal’s functionality. Themes let you customize your content’s presentation. We think we have described more features about Drupal, so now we should move to configuration.

Let’s take a look 😛 !!

Apache Installation

Basically we need a web server to configure or host any web application so we will first install apache web server to host our wordpress on our ubuntu operating system.

sudo apt install apache2

Installation of MySQL Database

Likewise, we need a database server in the backend to keep the credentials and information of ourselves and our customers. Now we will install maria database server to store all those data and content.

apt install mysql-client mysql-server

Add Repository

By default, the latest version of PHP is not installed in the Ubuntu operating system, so we will add this given repository so that the latest version of PHP can be installed in the ubutnu operating system. After adding it then execute the update command.

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

Installation of PHP

Now we can install any version of PHP which is available, but in this time we need version 7.3 of PHP which we install using the following command.

sudo apt-get install php7.3 php7.3-opcache php7.3-cli php7.3-gd php7.3-curl php7.3-mysql php7.3-xml

Protect Remote Root Login

We will take the following steps to secure our database server only. All you have to do is change the root password of mysql as per your choice and the rest has to be done as we have done below.

sudo mysql_secure_installation

Just enter “Y” everywhere and exit this configuration.

Create Database

Now we need to create database along with username and password by using the following command. You can keep all things or names according to yourself.

sudo mysql -u root -p
create database drupal;
CREATE USER 'drupal'@'localhost' IDENTIFIED BY '123';
GRANT ALL ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY '123';
FLUSH PRIVILEGES;
exit;

Drupal Installation

Now the time has come where we will install Drupal CMS on our system. First we have to download the drupal cms by using the wget utility and unzip the downloaded file using the tar command.

sudo wget https://www.drupal.org/download-latest/tar.gz -O drupal.tar.gz
sudo tar -xvf drupal.tar.gz

Now follow these steps one by one.

  • Step 1: Move the unzip file, creating a new directory in the root folder of the apache.
  • Step 2: Give the ownership to the created directory.
  • Step 3: Give permission as well.
  • Step 4: At the last just restart Apache web server.
sudo mv drupal-9.* /var/www/html/drupal
sudo chown -R www-data:www-data /var/www/html/drupal/
sudo chmod -R 755 /var/www/html/drupal/
sudo systemctl restart apache2

Lookup the following location on your browser and you will get the interface as shown in image below. Choose the language according to you.

http://localhost/drupal/core/install.php

Don’t need change anything and just proceed by click on “save and continue“.

Then scroll down and click on the hypertext link highlighted.

Fill in all the database names, usernames and passwords you have created here.

Wait 😛 !! It will only take a few seconds to check all configurations and credentials.

Now create a username and password to secure the admin panel of the web application.

That’s it 😛 !! Everything is done, as you can see that we have successfully configured Drupal CMS on our ubuntu operating system.

About the Author
Shubham Goyal Certified Ethical Hacker, information security analyst, penetration tester and researcher. Can be Contact on Linkedin.
Sponsored

View Comments

  • Hello my family member! I want to say that this post is awesome,
    nice written and come with almost all vital infos.
    I'd like to look extra posts like this .

  • Everyone loves it when people come together and share thoughts.

    Great blog, keep it up!

  • Woah! I'm really digging the template/theme of this blog.
    It's simple, yet effective. A lot of times it's challenging to
    get that "perfect balance" between superb usability and visual appearance.
    I must say you have done a amazing job with this.
    Also, the blog loads super fast for me on Internet explorer.
    Exceptional Blog!

  • Thank you, I have recently been searching for information about this
    topic for a while and yours is the best I've came
    upon till now. However, what in regards to the bottom line?
    Are you positive in regards to the source?

  • Hi would you mind stating which blog platform you're working with?

    I'm looking to start my own blog soon but I'm having a
    tough time deciding between BlogEngine/Wordpress/B2evolution and
    Drupal. The reason I ask is because your layout seems different then most blogs and I'm looking for something
    completely unique. P.S Apologies for getting off-topic but I had to ask!

    • Basically all the credit goes to my developer who made it very unique. But I would recommend you to use WordPress to create a beautiful blog. :) !!

  • Hi, I do believe this is a great web site. I stumbledupon it ;) I
    may return once again since I book-marked it.
    Money and freedom is the best way to change, may you be rich and continue to help others.

  • Pretty great post. I simply stumbled upon your weblog and wanted to say that I have
    truly loved browsing your weblog posts. In any case I will be subscribing in your
    feed and I am hoping you write once more soon!

Recent Posts

Termux Cheat Sheet for Hackers

Hey Folks :) !! In this article, we present the "Termux Cheat Sheet for Hackers"…

1 month ago

Cracking the X-Factor in Cybersecurity: How Humans are Protecting the Systems?

Amid the rapid advancement of technology, the significance of human involvement in cybersecurity frequently goes…

8 months ago

Cariddi – Hidden Endpoint Finder for Bug Hunting

Hey Folks, we are back today after such a long break, but don't worry we…

2 years ago

API Security Testing 101: Know Everything About API Security Testing!

The security of your API should be one of the top priorities of companies. Without…

2 years ago

7 Best Tools for Web Penetration Testing: Comprehensive Details

Hey Folks, In today's business world, it is essential to have an online presence. However,…

2 years ago

Cyber Security Audits: Everything You Need to Know About It

Hey Folks, Is your business prepared in case of a cyber attack? Many companies don't…

2 years ago
Sponsored

This website uses cookies.