In this article, we will have explained the necessary steps to install Joomla on Rocky Linux 8. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
Joomla is a free and open-source platform Content Management System (CMS) written in PHP used for creating different types of websites including blogs, eCommerce storefronts, and marketing sites.
Install Joomla on Rocky Linux 8
Step 1. First, before you start installing any package on your Rocky Linux server, we always recommend making sure that all system packages are updated.
sudo dnf install epel-release sudo dnf update sudo dnf upgrade
Step 2. Install LAMP stack on Rocky Linux.
It is assumed that you have already installed the LAMP stack on Rocky Linux 8. If not, please check out the following tutorial:
Step 3. Install Joomla.
Installing Bitwarden on your Rocky Linux system is straightforward, download the latest Joomla archive file from the official site using the below
wget https://downloads.joomla.org/cms/joomla4/4-0-5/Joomla_4-0-5-Stable-Full_Package.zip?format=zip -O joomla.zip
Next, unzip the file:
sudo unzip joomla.zip -d /var/www/html/joomla
Then, set proper permissions and ownership to the Joomla directory:
sudo chown -R apache:apache /var/www/html/joomla/ sudo chmod -R 775 /var/www/html/joomla/
Step 4. Create a Database for Joomla.
Joomla uses the MariaDB database to store all its data like posts, pages, users, plugins, and themes settings. Log in to your MariaDB server with the following command and enter your MariaDB root password:
mysql -u root -p
Once you’re in the MariaDB console, create a new database:
CREATE DATABASE joomla_db; GRANT ALL PRIVILEGES ON joomla_db.* TO 'joomla'@'localhost' IDENTIFIED BY 'your-password'; FLUSH PRIVILEGES; EXIT;
Step 5. Configure Apache.
We need to configure Apache to host Joomla. Now create a configuration file with an Alias to Joomla directory:
sudo nano /etc/httpd/conf.d/joomla.conf
Paste the following lines:
<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/var/www/html/joomla" ServerName your-domain.com ErrorLog "/var/log/httpd/your-domain-error_log" CustomLog "/var/log/httpd/your-domain-access_log" combined <Directory "/var/www/html/joomla"> DirectoryIndex index.html index.php Options FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>
Save and exit. Then restart the Apache HTTP webserver to apply the changes made:
sudo systemctl restart httpd
Step 6. Configure Firewall.
To allow external users to access Joomla from your server, you need to open the webserver port 80:
sudo firewall-cmd --add-port=80/tcp --zone=public --permanent sudo firewall-cmd --reload
Step 7. Access Joomla Website.
Now, Joomla is installed and configured on your server. You can now access the Joomla website using the URL
That’s all you need to do to install Joomla on Rocky Linux 8. I hope you find this quick tip helpful. For further reading on the Joomla content management system (CMS), please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.