Install Drupal
Published: 2023-08-16 10:47:12

> **16-08-2023**

Don't know why I remember these pictures when I hear "**DRUPAL**".

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/09iwlikealzgqgl0jbbj.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lzn99plwdemmtb6dc4xq.png)

"**Jokes apart**" my manager used to say this after making hilarious comedy ( no one will smile , BUT if I don't smile then I won't get proper appraisal ) வேற வழி இல்ல சிரிச்சு தான் ஆகணும் . Now I started using , "**Jokes Apart**" Lets swim into **DRUPAL**.

- **Dries Buytaert** is the founder of Drupal.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vyjo7u7hvo6vm9imz12v.png)

_இவரை எங்கேயோ பார்த்த மாதிரி இருக்கே_, 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vufzjkbshff5qrfr1942.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d7xx6u1dkg192oqp0f2c.png)

## _**<u>Symbol of Drupal & Intro</u>**_,

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9rwv1t8eieofh2bqehds.png)

- Drupal is content management software (CMS).
- It accommodates unlimited content types and simple tools to create, edit, retrieve and present this content to end users.
- It's used to make many of the websites and applications you use every day.
- Its tools help you build the versatile, structured content that dynamic web experiences need.
- The Drupal project is open source software.
- It's distributed under the terms of the GNU General Public License (GPL). 
- There are no licensing fees, ever. Drupal will always be free.
- Its written in PHP.
- 10.1 is nothing but the version.
- Very-well updates system to notify you about security updates.

---

## **DB creation for Drupal**

- In simple words , Login to mariadb and create Drupal user and Drupal database and give privileges

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d6c2d2ncnn155rw1a1t7.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uo7u7bul2kt7nzkhimqx.png)

---

## **Download & Start Installation**

```
wget https://www.drupal.org/download-latest/tar.gz
tar -xvf tar.gz  --> after this command , it created a folder called " drupal-10.1.2 ".
rm tar.gz
sudo mv drupal-10.1.2/ /var/www/html/
sudo chown www-data:www-data -R /var/www/html/drupal-10.1.2/
sudo chmod -R 755 /var/www/html/drupal-10.1.2/
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dpqqtkzcwtoxew3z1eyi.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/94tapp5atb4rprc9supv.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m8lvugpyf6vwhcxux7e1.png)

```
sudo vim /etc/apache2/sites-available/drupal.conf
vi /etc/hosts
127.0.0.1       sadishdrupal.in
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5re2u94526oyu8tu2exi.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0w0rstu88n8kliskadgj.png)

Enable the virtual host and the rewrite module ,

```
sudo a2ensite drupal.conf
sudo systemctl reload apache2
sudo a2enmod rewrite
sudo systemctl restart apache2
```
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s8uvbdt72346chlsk3q0.png)

Over the Browser,

http://sadishdrupal.in/

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1uf40x3yv17xut5wvf26.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yw2virj4a8oqomgbjsxt.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jdedgifiyq7e2cbkwjfa.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/teqezkb1hlajl7mjuc64.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nuh5qjoi74q3s5jsslv2.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/10bb6g4x7cxbhso87aoq.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/36dzid658e6aqrni380r.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cwb6z294vinbkyl9era4.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lvwz5fgxivpa3bikffuq.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tshipoav0reo2nj02vwu.png)

---

## **Schemas List :**


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7l84ro2qm6yh442hrst8.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f77p7exjq2l5zc22tmdy.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bfegvdco24z5avxgq3yj.png)

## **Error Faced :**

**ERROR 1:** PHP extension issue,

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iq66mmiof7h6sy8f8vvx.png)

**Solution :**

```
sudo apt install php8.2-cli php8.2-common php8.2-curl php8.2-gd php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-readline php8.2-sqlite3 php8.2-xml php8.2-apcu
sudo a2ensite drupal.conf
sudo systemctl reload apache2
sudo a2enmod rewrite
sudo systemctl restart apache2
```
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2r821t10dl3ukud1owbk.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ij9ugz2ja3434dq9vsfh.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dca7yrmo2ffbztpd41qd.png)

https://www.drupal.org/docs/getting-started/system-requirements/php-requirements

**ERROR 2:** DB issue in connecting to MariaDB,

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qibd3d8h6dtsq8lmmmte.png)

Solution : Provide the Password correctly.

---

## **Important Notes :**

1. https://www.drupal.org/home