Introduction
Joomla is a popular content management system (CMS) used to build and manage websites and web applications. Installing Joomla on Debian 12 allows you to create dynamic and interactive websites with ease. In this guide, we'll walk you through the step-by-step process of installing Joomla on Debian 12.
Prerequisites
Before you begin, make sure you have the following:
- A Debian 12 server with sudo privileges
- A LAMP (Linux, Apache, MySQL, PHP) stack installed and configured
- A domain name pointing to your server (optional)
Step 1: Download Joomla
First, download the latest version of Joomla from the official website:
wget https://downloads.joomla.org/cms/joomla3/3-10-6/Joomla_3-10-6-Stable-Full_Package.tar.gz
Step 2: Extract Joomla Archive
Extract the downloaded Joomla archive to the Apache web root directory (/var/www/html
):
sudo tar -zxvf Joomla_3-10-6-Stable-Full_Package.tar.gz -C /var/www/html/
Step 3: Set Permissions
Set the appropriate permissions on the Joomla directory:
sudo chown -R www-data:www-data /var/www/html/
sudo chmod -R 755 /var/www/html/
Step 4: Create a MySQL Database and User
Log in to your MySQL/MariaDB server:
mysql -u root -p
Create a new database for Joomla:
CREATE DATABASE joomla_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
Create a new MySQL user and grant privileges to the Joomla database:
CREATE USER 'joomla_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON joomla_db.* TO 'joomla_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Step 5: Complete Joomla Installation
Open a web browser and navigate to your server's domain name or IP address. Follow the on-screen instructions to complete the Joomla installation, providing the database information when prompted.
Conclusion
Congratulations! You've successfully installed Joomla on Debian 12. You can now log in to the Joomla administration panel and start building your website or web application.