Joomla is a free and open source platform Content Management System (CMS) written in PHP. It enables you to create dynamic web pages and applications with ease. It includes an easy-to-use design that allows you to get the most out of its features and functionality.
Here at LinuxAPT, we shall look into how to Install Joomla on Rocky Linux 8.
1. Perform System Update
To begin, ensure that your system is up-to-date:
$ sudo dnf update
$ sudo dnf install epel-release
2. Install LAMP server
If you do not have LAMP installed, you can follow our guide here.
3. Install Joomla on the system
Now we run the following command to download the latest installation package:
$ wget https://downloads.joomla.org/cms/joomla3/3-9-28/Joomla_3-9-28-Stable-Full_Package.zip?format=zip
After that, extract the file into the folder /var/www/html/ with the following command:
$ sudo unzip Joomla_3-9-28-Stable-Full_Package.zip -d /var/www/html
We will need to change some folders permissions:
$ sudo chown -R apache:apache /var/www/html/joomla
$ sudo chmod 755 /var/www/html/joomla
4. Configure MariaDB for NextCloud
By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each step carefully which will set a root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:
$ mysql_secure_installation
Configure it like this:
- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y
Next, we will need to log in to the MariaDB console and create a database for NextCloud. Run the following command:
$ mysql -u root -p
This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for Joomla installation:
MariaDB [(none)]> create database joomladb;
MariaDB [(none)]> create user joomlauser@localhost identified by 'your-strong-passwd';
MariaDB [(none)]> grant all privileges on joomladb.* to joomlauser@localhost;
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit
5. Configure Apache for Joomla
Now create a new virtual host file using the following command:
$ nano /etc/httpd/conf.d/joomla.conf
Add the following lines:
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot "/var/www/html/joomla"
ServerName joomla.linuxapt.com
ErrorLog "/var/log/httpd/example.com-error_log"
CustomLog "/var/log/httpd/example.com-access_log" combined
<Directory "/var/www/html/joomla">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Save the file and exit. Then, restart the Apache web service to apply the changes:
$ sudo systemctl restart httpd
$ sudo systemctl enable httpd
6. Configure Firewall
Allow the firewall to HTTP and HTTPS and reload it with the following commands:
$ sudo firewall-cmd --permanent --zone=public --add-service=http
$ sudo firewall-cmd --permanent --zone=public --add-service=https
$ sudo firewall-cmd --reload
Open your web browser and open the URL http://joomla.linuxapt.com. You will be redirected to the Configuration screen.
Provide the required information then click 'Set up Database Connection'.
Next, fill out your database details and click 'Install Joomla'.
Wait for the installation process to complete.
Next, pick 'Open Administrator' as your login option. Finally, the Joomla login page will come to view. Provide your logn credentials and hit that 'Login' button.
Finally, Joomla's dashboard will be displayed.
This article covers how to install Joomla on Rocky Linux 8. In fact, Joomla is an open-source and PHP-based content management system used for creating different types of websites including blogs, eCommerce storefronts, and marketing sites. It is simple, user-friendly, and provides an easy way to build dynamic and powerful websites.