How to Install Drupal CMS on Oracle Linux 8.6
To Install Drupal CMS On Oracle Linux 8.6
Introduction:
Drupal is a flexible CMS based on the LAMP stack, with a modular design that allows you to add and remove features, as well as change the appearance and feel of your website by installing and uninstalling themes.
Requirements:
LAMP STACK
Installation process:
Step 1: Check the CentOS version by using the below command
[root@linuxhelp home]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.6"
ID="ol"
Step 2: Create the database for Drupal CMS by using the below command
[root@linuxhelp ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.64-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database drupal;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> create user 'user1'@localhost identified by '123456';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> grant all privileges on drupal.* to 'user1'@localhost;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit
Bye
Step 3: Download the Drupal installation package using wget command
[root@linuxhelp ~]# wget https://www.drupal.org/download-latest/zip
--2019-11-22 05:20:19-- https://www.drupal.org/download-latest/zip
Resolving www.drupal.org (www.drupal.org)... 151.101.2.217, 151.101.66.217, 151.101.130.217, ...
Connecting to www.drupal.org (www.drupal.org)|151.101.2.217|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://ftp.drupal.org/files/projects/drupal-8.7.10.zip [following]
--2019-11-22 05:20:20-- https://ftp.drupal.org/files/projects/drupal-8.7.10.zip
Resolving ftp.drupal.org (ftp.drupal.org)... 151.101.2.217, 151.101.66.217, 151.101.130.217, ...
Connecting to ftp.drupal.org (ftp.drupal.org)|151.101.2.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 28619523 (27M) [application/zip]
Saving to: ‘zip’
100%[=============================================================>] 28,619,523 1.12MB/s in 25s
2019-11-22 05:20:46 (1.10 MB/s) - ‘zip’ saved [28619523/28619523]
Step 4: Extract the downloaded package using unzip command
[root@linuxhelp ~]# unzip zip
Archive: zip
creating: drupal-8.7.10/
inflating: drupal-8.7.10/.csslintrc
inflating: drupal-8.7.10/.editorconfig
inflating: drupal-8.7.10/.eslintignore
extracting: drupal-8.7.10/.eslintrc.json
inflating: drupal-8.7.10/.gitattributes
inflating: drupal-8.7.10/.ht.router.php
inflating: drupal-8.7.10/.htaccess
inflating: drupal-8.7.10/INSTALL.txt
Step 5: Move the Drupal CMS directory to apache root directory by using the below command
[root@linuxhelp ~]# mv drupal-9.3.16 /var/www/drupal
Step 6: Set the ownership and permission for Drupal CMS by using the below command
[root@linuxhelp ~]# chown -R apache:apache /var/www/drupal
[root@linuxhelp ~]# chmod -R 755 /var/www/drupal
Step 7: Configure the virtual host for accessing the Drupal CMS by using the below command
[root@linuxhelp ~]# vim /etc/httpd/conf.d/drupal.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/drupal
<directory /var/www/drupal>
allowoverride all
allow from all
</directory>
</virtualhost>
Step 8: Once all the step is completed restart apache service by using the below command
[root@linuxhelp ~]# systemctl restart httpd
Step 9: Now switch to browser and enter your domain name and Select the language as shown in the below image
Step 10: Select the profile as shown in the below image
Step 11: Configure the database as shown in the below image
Step 12: Installation is in process
Step 13: Configure the site settings as shown in the below image
Step 14: This is the dashboard of Drupal CMS
Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to Install Drupal CMS on Oracle Linux 8.6. Your feedback is much welcome