Joomla is a powerful and flexible content management system (CMS) used to build websites and online applications. In this guide, we’ll show you how to install Joomla on AlmaLinux, Rocky Linux, Debian, and Ubuntu. The steps are quite similar across these Linux distributions.
Prerequisites:
Before you begin, ensure the following:
- A server running AlmaLinux, Rocky Linux, Debian, or Ubuntu.
- Root or sudo access to your server.
- A LAMP stack (Linux, Apache, MySQL/MariaDB, PHP) installed.
- A domain or subdomain pointing to your server.
Step 1: Update the System
Start by updating the server to make sure all system packages are up-to-date:
Step 2: Install Required Software
For Joomla, you need a web server, a database, and PHP. Below are the commands for installing Apache, MariaDB, and PHP.
- On Ubuntu/Debian:
- On AlmaLinux/Rocky Linux:
Step 3: Configure the Database
Next, create a database and user for Joomla.
- Log in to MariaDB:
- Create a Joomla database and user:
Step 4: Download and Extract Joomla
Now download the latest Joomla package and extract it to the web directory.
-
Go to the Joomla download page and grab the latest release link: Joomla Download.
-
Download Joomla:
- Extract Joomla:
- Set permissions for the Joomla folder:
Step 5: Configure Apache (for AlmaLinux/Rocky Linux)
- Create a virtual host configuration for Joomla:
- Add the following content:
- Restart Apache:
Step 6: Configure Apache (for Ubuntu/Debian)
- Create a virtual host configuration for Joomla:
- Add the following content:
- Enable the new site and restart Apache:
Step 7: Complete the Joomla Web Installation
-
Open your web browser and visit your domain (e.g.,
http://yourdomain.com
). -
Follow the on-screen instructions to complete the Joomla installation. Enter the database information:
- Database Type: MySQLi
- Host: localhost
- Database Name:
joomla_db
- Username:
joomla_user
- Password:
your_password
-
After completing the installation, delete the installation folder for security purposes:
Step 8: Final Configuration
Ensure your server has the correct permissions to run Joomla without issues.
- Set proper permissions:
- Enable the Apache rewrite module if it’s not already enabled:
Conclusion
You have successfully installed Joomla on your AlmaLinux, Rocky Linux, Debian, or Ubuntu server. You can now log in to the Joomla backend by visiting http://yourdomain.com/administrator
and start building your website.