Joomla is a popular free and open-source content management system (CMS) that allows users to publish web content on their websites. It offers a wide range of web content applications, including discussion forums, photo galleries, e-commerce platforms, and user communities. In this step-by-step guide, we will walk you through the process of installing Joomla on Rocky Linux 9, a powerful Linux distribution known for its stability and security.

Before we begin, make sure you have the following prerequisites:

Step 1: Create Database

To get started, we need to create a database and a user for Joomla. This will allow Joomla to store and retrieve data from the database.

Open a terminal and log in as the root user. Then, enter the following commands:

mysql -u root
CREATE DATABASE joomla_db;
CREATE USER joomla_user@'localhost' IDENTIFIED BY 'YOUR-PASSWORD-HERE';
GRANT ALL PRIVILEGES ON joomla_db.* TO joomla_user@'localhost';
FLUSH PRIVILEGES;
exit

Make sure to replace ‘YOUR-PASSWORD-HERE’ with a strong and secure password. These commands will create a database called ‘joomladb’ and a user called ‘joomlauser’ with full privileges to access the database.

Step 2: Install Let’s Encrypt SSL Certificate

Next, we will install a Let’s Encrypt SSL certificate to secure our Joomla website with HTTPS. This will ensure that the data transmitted between the user’s browser and your website remains encrypted and secure.

Please refer to our guide on How to Install Let’s Encrypt SSL Certificate for detailed instructions on how to set up SSL for your domain.

Step 3: Download Joomla

Now, let’s download the latest version of Joomla from the official website. Open a terminal and enter the following commands:

dnf install wget unzip
wget https://downloads.joomla.org/cms/joomla4/4-1-5/Joomla_4-1-5-Stable-Full_Package.zip
unzip Joomla_4-1-5-Stable-Full_Package.zip -d /var/www/html/joomla

These commands will install the necessary tools, download the Joomla package, and extract it to the /var/www/html/joomla directory.

Step 4: Set Up File Permissions

To ensure that Joomla functions properly, we need to set the correct file permissions. Open a terminal and enter the following commands:

chown -R apache:apache /var/www/html/joomla
chmod -R 755 /var/www/html/joomla
chcon -R -t httpd_sys_content_rw_t /var/www/html/joomla

These commands will change the ownership of the Joomla files to the Apache user, set the appropriate permissions, and configure the SELinux context.

Step 5: Configure Apache vHost

Next, we need to create an Apache virtual host configuration file for our Joomla website. Open a terminal and enter the following command to create a new configuration file:

vi /etc/httpd/conf.d/blog.domainhere.info.conf

Replace ‘blog.domainhere.info’ with your actual domain name. Then, add the following codes to the file:

<VirtualHost *:80>
ServerName blog.domainhere.info
DocumentRoot /var/www/html/joomla

<Directory /var/www/html/joomla/>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>

ErrorLog /var/log/httpd/blog.domainhere.info-error.log
CustomLog /var/log/httpd/blog.domainhere.info-access.log combined
</VirtualHost>

Press the Esc key, type :wq!, and press Enter to save and exit the file.

Finally, restart Apache to apply the changes:

systemctl restart httpd
systemctl status httpd

Step 6: Enable Firewall

To ensure the security of your Joomla website, it is important to enable the firewall and allow HTTP and HTTPS traffic. Open a terminal and enter the following commands:

firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload

These commands will add HTTP and HTTPS services to the firewall rules and reload the firewall configuration.

Step 7: Configure Joomla

Now, it’s time to configure Joomla and complete the installation process. Open your browser and enter the following URL, replacing ‘blog.domainhere.info’ with your actual IP address or domain:

http://blog.domainhere.info/

You will be redirected to the Joomla configuration page. Follow the on-screen instructions to set your preferred language, enter the site name, and create an administrator user to manage your Joomla site.

When prompted, enter the database details that you configured earlier.

Once you have completed the configuration, click on the “Open Administrator” button to log in to the Joomla dashboard.

Congratulations! You have successfully installed Joomla with LAMP Stack on Rocky Linux 9. You can now start customizing your website, adding content, and exploring the various features and extensions available in Joomla.

Conclusion

Joomla is a powerful content management system that allows you to create and manage dynamic websites with ease. By following this guide, you have learned how to install Joomla on Rocky Linux 9 using the LAMP Stack. We covered the steps from creating a database and setting up file permissions to configuring Apache and enabling the firewall. Now, you can unleash your creativity and build stunning websites with Joomla.

If you need further assistance or have any questions, feel free to reach out to our 24×7 in-house customer support. We offer reliable and scalable cloud hosting solutions, including Cloud VPS, to empower businesses like yours. Visit Shape.host for more information.

Happy Joomla-ing!