In this article, we will be showing you how to install Joomla CMS in RHEL 8 Linux.
If you want an overview of the steps needed for installing a joomla website on linux then continue reading through to the end. If not skip over to the last section which is where you can find detailed instructions and screenshots on how to complete each step from start-to-finish.
Step 1: Install Apache Web Server Software
sudo yum -y update && sudo yum -y install httpd && echo “Web Server” >> /etc/hosts echo “127.0.0.1 localhost” > /etc/hosts Step 2: Install MySQL Database Engine
aptitude install mysql-server&&service mysqld start Step 3: Create a User Account with Permissions For Installing Extensions (Optional) mysql> CREATE USER ‘joomlabotuser’@localhost; -> GRANT SELECT ON j_users tbl TO ‘joomlabotuser’@localhost LIMIT 10; -> FLUSH PRIVILEGES; Step 4: Download The File And Extract It In Your Webroot Folder (/var/www/) To Make A New Directory Called www View This Page in Browser Of Any Website By Clicking On Embedded Link Below ↓↓↓ https://docs .google .com/document/d/-6wMZKVHUzYQ2LXNgOGhDk7pI4xBJFv628nR8bOtTfP4a/_edit?usp=sharing
Due of its scripting expertise, Joomla is an open-source CMS (Content Management System) based mostly in the PHP computer language.
It is described as free and open source, implying that any user who wants to profit from it has complete control. As a result, Joomla is an excellent choice for developing a blog, news, or content site for a company or personal project.
Prerequisites
On the RHEL 8 system you’re running, make sure you have root/sudoer user capabilities.
In RHEL, you may install the Apache Web Server.
To ensure that your RHEL 8 system meets the performance criteria, make sure it is up to date.
$ sudo dnf update && sudo dnf upgrade -y
A fast web server, such as Apache, will be required to host your Joomla CMS site. Install it by running the following command:
$ sudo dnf install httpd httpd-tools Install Apache in RHEL Linux
You can start, activate, and check the status of your web server after it’s been installed.
$ sudo systemctl start httpd $ sudo systemctl enable httpd $ sudo systemctl status httpd Check Apache Status in RHEL
RHEL PHP Installation
You must activate EPEL and Remi repositories as specified to install the most latest version of PHP 8.
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm $ sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm sudo dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm $ sudo dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm
Then, as indicated, list, reset, and activate the most recent PHP module.
$ sudo dnf php module list php dnf module reset $ sudo dnf module reset dnf module enable php:remi-8.1 $ sudo dnf module enable php:remi-8.1
Finally, install PHP 8 and all of its add-ons.
$ sudo dnf install php php-opcache php-gd php-curl php-mysqlnd php-mbstring php-xml php-pear php-fpm php-mysql php-pdo php-json php-zip php-common php-cli php-xmlrpc php-xml php-tidy php-soap php-bcmath php-devel Install PHP in RHEL Linux
You may start, enable, and check the status of your php-fpm service after it’s been installed.
$ sudo systemctl start php-fpm $ sudo systemctl enable php-fpm $ sudo systemctl status php-fpm Check PHP-FPM Status
For PHP execution, enable Selinux.
setsebool -P httpd execmem 1 $ sudo setsebool -P httpd execmem 1
RHEL MariaDB Installation
For storing user and system-generated data, a database server is essential.
$ sudo yum install mariadb-server Install MariaDB in RHEL
You may start, activate, and check the status of your MariaDB database server after it’s been installed.
$ sudo systemctl start mariadb $ sudo systemctl enable mariadb $ sudo systemctl status mariadb Check MariaDB Status in RHEL
The following security script should be used to safeguard your MariaDB installation.
mysql secure installation $ sudo mysql secure installation
You may use this command to establish the database root password as well as other pre-configurations.
MariaDB security in RHEL Linux
Using RHEL to create a Joomla database
Create a Joomla user, database, and provide the user the needed database rights by logging into the MariaDB database.
$ mysql -u root -p MariaDB [(none)]> CREATE USER [email protected] IDENTIFIED BY “Your_preferred_joomla_user_password”; MariaDB [(none)]> CREATE DATABASE joomla_db; MariaDB [(none)]> GRANT ALL ON joomla_db.* TO [email protected]; MariaDB [(none)]> FLUSH PRIVILEGES; MariaDB [(none)]> exit Create Joomla Database
In RHEL, install Joomla CMS.
Use the following wget command to get the newest version of Joomla CMS from its official site.
$ wget https://downloads.joomla.org/cms/joomla4/4-1-0/Joomla4-1-0/Joomla4-1-0/Joomla4-1-0/Joomla4-1-0/Joomla4-1-0/Joomla4-
After that, extract Joomla to the /var/www/html/joomla folder/directory and provide ownership and permissions to the directory.
mkdir -p /var/www/html/joomla $ sudo mkdir -p /var/www/html/joomla tar -xvf joomla.tar.gz -C /var/www/html/joomla $ sudo tar -xvf joomla.tar.gz -C /var/www/html/joomla $ sudo chmod -R 755 /var/www/html/joomla/ $ sudo chown -R apache:apache /var/www/html/joomla/
Then, on Apache, establish and configure a Joomla virtual host.
/etc/httpd/conf.d/joomla.conf $ sudo nano /etc/httpd/conf.d/joomla.conf
Add the virtual host setup below.
[email protected] ServerAdmin ServerName /var/www/html/joomla/ DocumentRoot /var/www/html/joomla/ DocumentRoot /var/www/html/j linuxshelltips.network ServerAlias www.linuxshelltips.network $APACHE LOG DIR/error.log ErrorLog $APACHE LOG DIR/error.log CustomLog combined $APACHE LOG DIR/access.log Options FollowSymLinks AllowOverride All Requirements are met.
Save and close the file, then look for flaws in the apache configuration file’s syntax.
apachectl -t sudo apachectl -t sudo apachectl -t sud
Configure Selinux to enable Joomla PHP scripts to run.
$ sudo semanage fcontext -a -t httpd sys rw content t “/var/www/html/joomla(/.*)?” $ sudo semanage fcontext -a -t httpd sys rw content t “/var/www/html/joomla(/.*)?” ‘/var/www/html/joomla/installation/configuration.php’ $ sudo semanage fcontext -a -t httpd sys rw content t -dist $ sudo semanage fcontext -a -t httpd sys rw content t ‘/var/www/html/joomla/installation’ $ sudo semanage fcontext -a -t httpd sys rw content t ‘/var/www/html/joomla/installation’ restorecon -Rv /var/www/html/joomla $ sudo restorecon -Rv /var/www/html/joomla restorecon -v /var/www/html/joomla/installation/configuration.php-dist $ sudo restorecon -v /var/www/html/joomla/installation/configuration.php-dist restorecon -Rv /var/www/html/joomla/installation $ sudo restorecon -Rv /var/www/html/joomla/installation /var/www/html/joomla $ sudo chown -R apache:apache
Finally, the Apache webserver should be restarted.
$ sudo systemctl restart httpd Start Apache Web Server
Complete the Joomla CMS setup.
From your browser, go to the domain name you set up for Joomla.
http://linuxshelltips.lan.network
The first step is to choose a name for your website:
Set Joomla Site Information
On the following page, enter your Joomla login information:
Set Joomla Login Information
The next page will ask you to connect to a database using the MariaDB credentials you established before.
Configure Joomla’s Database
When you click the install button, your Joomla CMS site will begin to install.
Installation of Joomla
Please be patient as the installation procedure may take some time. After that, you may log in to your new Joomla CMS site and customize it to your preferences.
The Joomla installation is completed.
Your RHEL 8 system is now prepared to use Joomla CMS.