How to Install Joomla! on Debian Latest

Joomla! is a popular open-source content management system (CMS) that allows users to create, manage and publish web content. In this tutorial, we will guide you on how to install Joomla! on Debian Latest.

Prerequisites

Before installing Joomla!, make sure you have the following prerequisites:

Step 1: Update System

Update your Debian system to ensure that all packages are up to date.

sudo apt-get update
sudo apt-get upgrade

Step 2: Install Apache Web Server

Install Apache web server on your Debian server by running the following command:

sudo apt-get install apache2

Step 3: Install MySQL or MariaDB Database

Both MySQL and MariaDB databases are compatible with Joomla!, choose any one of them and install on your Debian server:

Install MySQL

sudo apt-get install mysql-server mysql-client

Install MariaDB

sudo apt-get install mariadb-server mariadb-client

Step 4: Install PHP and Extensions

Install PHP 7.0 or higher with essential extensions for Joomla! by running the following command:

sudo apt-get install php libapache2-mod-php php-mysql php-gd php-curl php-intl php-mbstring php-xmlrpc php-xml

Restart the Apache web server:

sudo systemctl restart apache2

Step 5: Download Joomla!

Download the latest version of Joomla! from the official website:

wget https://downloads.joomla.org/cms/Joomla_3.9.15-Stable-Full_Package.zip

Unzip the downloaded package:

unzip Joomla_3.9.15-Stable-Full_Package.zip -d /var/www/html/

Step 6: Configure Apache

Create a new virtual host configuration file for Joomla!:

sudo nano /etc/apache2/sites-available/joomla.conf

Paste the following content to the joomla.conf file:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html/Joomla_3.9.15-Stable-Full_Package/

    <Directory /var/www/html/Joomla_3.9.15-Stable-Full_Package/>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/joomla_error.log
    CustomLog ${APACHE_LOG_DIR}/joomla_access.log combined
</VirtualHost>

Save and exit the file.

Enable the Joomla! virtual host:

sudo a2ensite joomla

Restart the Apache web server:

sudo systemctl restart apache2

Step 7: Set Permissions

Set the appropriate permissions to enable Joomla! to work correctly:

sudo chown -R www-data:www-data /var/www/html/Joomla_3.9.15-Stable-Full_Package/
sudo chmod -R 755 /var/www/html/Joomla_3.9.15-Stable-Full_Package/

Step 8: Access Joomla! Installation

Open your web browser and type your server IP address or domain name. You will see the Joomla! installation screen.

Follow the on-screen instructions to complete the installation process.

Congratulations! You now have Joomla! installed on your Debian Latest server!

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!