Install Drupal

technonotes-hacker - Aug 16 '23 - - Dev Community

16-08-2023

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

Image description

Image description

"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

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

Image description

Image description

Symbol of Drupal & Intro,

Image description

  • 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
Enter fullscreen mode Exit fullscreen mode

Image description

Image description


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/
Enter fullscreen mode Exit fullscreen mode

Image description

Image description

Image description

sudo vim /etc/apache2/sites-available/drupal.conf
vi /etc/hosts
127.0.0.1       sadishdrupal.in
Enter fullscreen mode Exit fullscreen mode

Image description

Image description

Enable the virtual host and the rewrite module ,

sudo a2ensite drupal.conf
sudo systemctl reload apache2
sudo a2enmod rewrite
sudo systemctl restart apache2
Enter fullscreen mode Exit fullscreen mode

Image description

Over the Browser,

http://sadishdrupal.in/

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description


Schemas List :

Image description

Image description

Image description

Error Faced :

ERROR 1: PHP extension issue,

Image description

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
Enter fullscreen mode Exit fullscreen mode

Image description

Image description

Image description

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

ERROR 2: DB issue in connecting to MariaDB,

Image description

Solution : Provide the Password correctly.


Important Notes :

  1. https://www.drupal.org/home
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player