• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Install Drupal CMS on Rocky Linux 8.6

  • 00:04 cat /etc/os-release
  • 00:19 dnf install php php-{cli,fpm,json,common,mysql,zip,gd,intl,mbstring,curl,xml,pear,tidy,soap,bcmath,xmlrpc}
  • 00:40 mysql -u root -p
  • 00:57 create user 'drupaluser'@localhost identified by 'Linuxc#4';
  • 01:12 grant all privileges on drupaldb.* to 'drupaluser'@localhost;
  • 01:47 flush privileges;
  • 02:20 \q
  • 02:31 wget https://www.drupal.org/download-latest/zip
  • 02:46 unzip zip
  • 02:58 mv drupal-9.4.1/ /var/www/drupal
  • 03:13 chown -R apache:apache /var/www/drupal/
  • 03:27 chmod -R 755 /var/www/drupal/
  • 04:06 vim /etc/httpd/conf.d/drupal.conf
  • 06:20 vim /etc/hosts
  • 06:50 setenforce 0
  • 06:58 systemctl restart httpd.service
{{postValue.id}}

To Install Drupal CMS on Rocky Linux 8.6

Introduction

Drupal is a web content management tool and a customizable platform that helps to build the right tool to serve the content management strategy. It is used by Business and technology leaders to create real-world enterprise solutions that empower web innovation. This Tutorial covers the installation of the Drupal CMS on Rocky Linux 8.6

Step 1: Check the installed version of OS by using the below command

[root@linuxhelp ~]# cat /etc/os-release 
NAME="Rocky Linux"
VERSION="8.6 (Green Obsidian)"
ID="rocky"
ROCKY_SUPPORT_PRODUCT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

Step 2: Install the PHP and its modules by using the below command

[root@linuxhelp ~]# dnf install php php-{cli,fpm,json,common,mysql,zip,gd,intl,mbstring,curl,xml,pear,tidy,soap,bcmath,xmlrpc}

Last metadata expiration check: 0:52:26 ago on Thu 23 Jun 2022 05:06:55 PM EDT.
Package php-8.0.20-1.el8.remi.x86_64 is already installed.
Dependencies resolved.
=============================================================================================
 Package               Arch   Version                                     Repository    Size
=============================================================================================
Installing:
 php-bcmath            x86_64 8.0.20-1.el8.remi                           remi-modular  89 k
 php-gd                x86_64 8.0.20-1.el8.remi                           remi-modular 104 k
 php-intl              x86_64 8.0.20-1.el8.remi                           remi-modular 242 k
 php-pear              noarch 1:1.10.13-1.el8.remi                        remi-modular 366 k
 php-pecl-mysql        x86_64 1.0.0-0.24.20201210.6ca4fa4.el8.remi.8.0    remi-modular  43 k

Step 3: Now create a database and user to the Drupal CMS by using the below command

[root@linuxhelp ~]# mysql -u root -p
Enter password:
mysql> create database dupaldb;
Query OK, 1 row affected (0.00 sec)

mysql> create user 'drupaluser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.01 sec)

mysql> grant all privileges on drupaldb.* to 'drupaluser'@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> \q
Bye

Step 4: Download the Drupal CMS package by using the below command

[root@linuxhelp Downloads]# wget https://www.drupal.org/download-latest/zip
--2022-06-23 18:02:20--  https://www.drupal.org/download-latest/zip
Resolving www.drupal.org (www.drupal.org)... 199.232.254.217
Connecting to www.drupal.org (www.drupal.org)|199.232.254.217|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
zip                     100%[============================>]  32.88M  46.8MB/s    in 0.7s

Step 5: Now extract the package by using the below command

[root@linuxhelp Downloads]# unzip zip
Archive:  zip
   creating: drupal-9.4.1/
   creating: drupal-9.4.1/vendor/
   creating: drupal-9.4.1/vendor/composer/
   creating: drupal-9.4.1/vendor/composer/semver/
  inflating: drupal-9.4.1/vendor/composer/semver/CHANGELOG.md  
  inflating: drupal-9.4.1/vendor/composer/semver/LICENSE  

Step 6: Move the Drupal CMS directory to apache root directory by using the below command

[root@linuxhelp Downloads]# mv drupal-9.4.1/ /var/www/drupal

Step 7: Now set the ownership and permissions to the Drupal directory by using the below command

[root@linuxhelp Downloads]# chown -R apache:apache /var/www/drupal/

[root@linuxhelp Downloads]# chmod -R 755 /var/www/drupal/

Step 8: Now configure the virtual host for access the Drupal CMS by using the below command

[root@linuxhelp Downloads]# vim /etc/httpd/conf.d/drupal.conf
<VirtualHost *:80>
ServerAdmin www.linuxhelp.coim
DocumentRoot /var/www/drupal
<Directory "/var/www/drupal">
AllowOverride all
Require all granted
</Directory>
</VirtualHost>

Step 9: Put the host entry by using the below command

[root@linuxhelp Downloads]# vim /etc/hosts
127.0.0.1 linuxhelp.com

Step 10: Disable Selinux by using the below command

[root@linuxhelp Downloads]# setenforce 0

Step 11: Restart Apache web server by using the below command

[root@linuxhelp Downloads]# systemctl  restart httpd.service

Go to the browser to access Drupal CMS as shown in the below image Snap 1

Choose the language as shown in the below image Snap 2

Select an Installation profile as shown in the below image Snap 3

Enter Data base Configuration as shown in the below image Snap 4

Drupal Installation is running Snap 5

Enter Configure site as shown in the below image Snap 6

This is the Welcome page of Drupal CMS Snap 7

By this the installation process of Drupal CMS on Rocky Linux 8.6 has come to an end.

Tags:
gabriel
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is Drupal CMS?

A

Drupal is a web content management tool as well as a customizable platform to help you to build the right tool to serve your content management strategy.

Q

What is the command to enter MySQL?

A

The command is # mysql -u root -p

Q

How do you create a database for Drupal CMS?

A

The command is # create database drupaldb;

Q

How to configure the host entry?

A

the command is # vi /etc/hosts

Q

What is the command to extract the download package?

A

The command is # unzip (zip file name)

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Elijah ?
Remote Desktop Connection Has Stopped Working

When accessing my remote machine server using remote desktop on a windows machine I am getting this error

forum (1)

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.