
Joomla is an open-source content management system (CMS) that allows users to build and manage websites and web applications. It is a popular and widely used CMS known for its flexibility, scalability, and ease of use. Joomla is written in PHP and uses a MySQL/MariaDB database to store content and data.
It is a versatile CMS that can be adapted to meet various website needs, and its open-source nature means it is free to use and can be customized to suit specific requirements.
In this article, we will show you how to install Joomla on Debian 12.
Table of Contents
Prerequisites
- A Debian VPS
- Root access or regular system user with sudo privileges
Step 1. Log in to your server via SSH
First, you will need to log in to your Debian 12 VPS via SSH as the root user:
You will need to substitute the “IP_Address” and “Port_number” with your server’s respective IP address and SSH port number. Additionally, replace ‘root’ with the username of the system user with sudo privileges.
Step 2. Install Nginx Web Server
To install the Nginx web server, run the following command:
Once the installation is completed, enable and start the Nginx service:
To check if everything is OK, check the status of the service with the following command:
You should receive the following output:
Step 3. Install PHP
You can install the PHP with extensions using this command:
After successful installation, check the PHP version:
You should get the following output:
Step 4: Install MariaDB
You can install MariaDB using the following command:
Start and enable the mariadb.service with the following commands:
Check the status of the mariadb.service
Now, we can create a new database and database user for the Joomla installation.
Once logged in to the MariaDB shell, run the following commands:
Step 5: Download Joomla
To get the most stable version, you can check the Joomla download page. At the time of writing, the latest version is Joomla 4.3.4.
You can download it using the following command:
Once the download is complete, create a directory for your Joomla website document root:
Then extract the downloaded archive in the /var/www/joomla directory using the following command:
Change the owner and set the correct permissions for these files by running the following command:
Step 6. Create Nginx Configuration File
It’s time to create a server block for our Joomla website.
Insert the following configuration into the file. Make sure to use your actual domain instead of “yourdomain.com”
Now, restart the Nginx service.
Step 7. Finish Joomla Installation
Now, open your web browser and access Joomla using the URL http://yourdomain.com. You will be redirected to the following page:
Select the language and enter the name of your website. then click on the ‘Setup Login Data’ button to continue.
Fill in the required fields in this step, then proceed to the next step by clicking on ‘Setup Database Connection.’
Enter the database name, database user, and database password you created before, then finally click on the ‘Install Joomla’ button.
That’s it all! You have successfully installed Joomla on Debian 12.
Of course, you don’t have to pull your hair to install Joomla on Debian 12 if you have a managed Linux VPS hosting plan hosted with us. If you do, you can simply ask our support team to install Joomla on Debian 12 for you. They are available 24/7 and will be able to help you with the installation of Joomla as well as any additional requirements that you may have.
PS. If you enjoyed reading this blog post on how to install Joomla on Debian 12, feel free to share it on social networks or simply leave a comment in the comments section. Thank you.