How to Install Joomla on Ubuntu 24.04
Step-by-step tutorial on how to install Joomla on Ubuntu 24.04 LTS with Apache, MariaDB, PHP 8.3, and Let's Encrypt SSL. Deploy your CMS store.

6 min read
Step-by-step tutorial on how to install Joomla on Ubuntu 24.04 LTS with Apache, MariaDB, PHP 8.3, and Let's Encrypt SSL. Deploy your CMS store.
- Prerequisites and Supported Releases
- Step 1: Installing the Apache Web Server and MariaDB Database
- Step 2: Installing PHP 8.3 and Required Joomla Extensions
Joomla is a powerful, award-winning open-source Content Management System (CMS) that bridges the gap between the simplicity of WordPress and the structural complexity of Drupal. Renowned for its advanced access control lists (ACL), multilingual support out of the box, flexible menu management, and robust template overrides, Joomla powers millions of corporate intranets, e-commerce portals, and community sites worldwide.
With the release of Joomla 5, the platform delivers modern PHP 8.3 support, enhanced security headers, automated web asset management, and improved performance. Learning how to install joomla on ubuntu 24.04 enables system administrators and developers to build enterprise-grade content management systems on modern, supported infrastructure.
In this step-by-step tutorial, we demonstrate how to install Joomla on Ubuntu 24.04 LTS (Noble Numbat) using the LAMP stack (Apache, MariaDB, and PHP 8.3). We guide you through installing required extensions, configuring MariaDB databases, adjusting PHP settings, setting up Apache Virtual Hosts with URL rewrites, and securing your deployment with free Let's Encrypt SSL certificates.
Install and configure Joomla CMS on Ubuntu 24.04 LTS using the LAMP stack (Apache, MariaDB, PHP 8.3), Virtual Hosts, and Let's Encrypt SSL certificates.
Prerequisites and Supported Releases
This guide is thoroughly verified on Ubuntu 24.04 LTS (Noble Numbat). The instructions apply cleanly to cloud instances (AWS EC2, Google Compute Engine, DigitalOcean, Hetzner), bare-metal servers, and local virtual machines.
Before proceeding, ensure you have the following requirements satisfied:
- A server or virtual machine running
Ubuntu 24.04 LTS. - A non-root user with administrative
sudoprivileges. - A registered domain name (e.g.,
joomla.example.com) pointed to your server IP address. - At least
2 GB of RAM(4 GB recommended for busy community portals).
Step 1: Installing the Apache Web Server and MariaDB Database
Joomla requires an HTTP web server and a relational database engine. In this guide, we use the enterprise-standard Apache HTTP server and MariaDB database server.
MariaDB is a high-performance, drop-in replacement for MySQL that delivers superior query optimization, enhanced thread pooling, and robust transactional storage through the Aria and InnoDB engines. Apache provides seamless integration with PHP and native support for .htaccess configuration files.
Update your package repository lists and install apache2, mariadb-server, and standard utility packages using APT.
Ensure both services are enabled and running across system reboots.
# Update repository indices
sudo apt update && sudo apt upgrade -y
# Install Apache web server and MariaDB database
sudo apt install -y apache2 mariadb-server mariadb-client curl wget unzip
# Enable and verify services
sudo systemctl enable --now apache2 mariadb
Step 2: Installing PHP 8.3 and Required Joomla Extensions
Joomla requires PHP along with several specific extensions for XML processing, internationalization, database drivers, and cryptographic hashing.
The php-intl module is required for international domain name resolution and multilingual routing, while php-mbstring ensures full UTF-8 character handling for multi-byte scripts. The php-opcache module precompiles PHP scripts into shared memory, dramatically reducing server response latency.
Install PHP and required modules: libapache2-mod-php, php-mysql, php-curl, php-gd, php-intl, php-mbstring, php-xml, php-zip, and php-ldap.
Adjust the PHP configuration in /etc/php/8.3/apache2/php.ini to meet Joomla recommendations: set memory_limit = 256M, upload_max_filesize = 64M, post_max_size = 64M, and max_execution_time = 300.
# Install PHP and extensions
sudo apt install -y php libapache2-mod-php php-mysql php-curl php-gd php-intl php-mbstring php-xml php-zip php-ldap php-opcache
# Restart Apache
sudo systemctl restart apache2
Step 3: Creating the Joomla Database and User
Set up a dedicated database and database user inside MariaDB for Joomla.
Log into the MariaDB shell as root.
Create the database joomla_db with utf8mb4 encoding, create user joomla_user, grant full privileges, and apply the changes.
Replace StrongJoomlaPassword123! with a strong password.
-- Access MariaDB root shell
sudo mariadb
-- Create Joomla database
CREATE DATABASE joomla_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- Create dedicated user
CREATE USER 'joomla_user'@'localhost' IDENTIFIED BY 'StrongJoomlaPassword123!';
-- Grant database privileges
GRANT ALL PRIVILEGES ON joomla_db.* TO 'joomla_user'@'localhost';
-- Apply changes and exit
FLUSH PRIVILEGES;
EXIT;
Step 4: Downloading and Extracting Joomla
Download the latest stable release package of Joomla directly from the official Joomla downloads repository.
Create a dedicated web root directory at /var/www/joomla and extract the archive into it.
Verify the extracted files.
# Create web root directory
sudo mkdir -p /var/www/joomla
# Download latest stable Joomla package
cd /tmp
wget https://downloads.joomla.org/cms/joomla5/5-2-0/Joomla_5-2-0-Stable-Full_Package.tar.gz -O joomla.tar.gz
# Extract into /var/www/joomla
sudo tar -xzf joomla.tar.gz -C /var/www/joomla
# Clean up archive
rm -f joomla.tar.gz
Step 5: Setting Directory Permissions and Ownership
To allow the Apache web server to write cache files, install extensions, and save configuration files, assign ownership to www-data.
Set directory permissions to 0755 and file permissions to 0644.
This ensures optimal security while preventing permission errors during installation.
# Set ownership to web server user
sudo chown -R www-data:www-data /var/www/joomla
# Apply standard permissions
sudo find /var/www/joomla/ -type d -exec chmod 755 {} \;
sudo find /var/www/joomla/ -type f -exec chmod 644 {} \;
Step 6: Configuring Apache Virtual Host for Joomla
Create a dedicated Apache Virtual Host configuration for your Joomla domain to ensure clean domain isolation and proper routing.
Create /etc/apache2/sites-available/joomla.conf and define the document root, domain name, and directory overrides.
Configuring AllowOverride All enables Joomla's distributed .htaccess directives to control caching headers and prevent script execution inside upload folders.
Enable the Apache rewrite and headers modules, activate the virtual host, and restart Apache.
# Create virtual host definition
sudo bash -c 'cat <<EOF > /etc/apache2/sites-available/joomla.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/joomla
ServerName joomla.example.com
<Directory /var/www/joomla>
Options -Indexes +FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/joomla_error.log
CustomLog ${APACHE_LOG_DIR}/joomla_access.log combined
</VirtualHost>
EOF'
# Enable rewrite module and site
sudo a2enmod rewrite headers
sudo a2ensite joomla.conf
sudo a2dissite 000-default.conf
sudo systemctl restart apache2
Step 7: Securing Joomla with Let's Encrypt SSL
Encrypting user authentication sessions and administrative actions is mandatory for production web applications.
Use Certbot to automatically obtain and configure a free Let's Encrypt SSL certificate for your Joomla domain.
Certbot will configure Apache to automatically redirect all unencrypted HTTP traffic to secure HTTPS.
# Install Certbot and Apache plugin
sudo apt install -y certbot python3-certbot-apache
# Obtain and install SSL certificate
sudo certbot --apache -d joomla.example.com
Step 8: Completing the Web-Based Installation Wizard
Open your web browser and navigate to https://joomla.example.com to launch the graphical installer.
1. Select Language & Site Name: Enter your site name and preferred language.
2. Login Data: Enter your real name, administrative username, secure password, and email address.
3. Database Configuration: Select MySQL (PDO), enter host (localhost), database username (joomla_user), password (StrongJoomlaPassword123!), and database name (joomla_db).
Click Install Joomla. Upon completion, the installer automatically cleans up installation files and directs you to the site.
After logging into the Joomla administration console at https://joomla.example.com/administrator, navigate to System > Global Configuration > Server, and verify that Force HTTPS is set to Entire Site.
Site Name: My Enterprise Portal
Admin User: joomla_admin
Database: MySQL (PDO)
DB Name: joomla_db
DB User: joomla_user
Troubleshooting and Common Errors
When configuring Ubuntu servers, unexpected permission errors, network timeouts, or lock contention can occur. Review these common issues and verified resolutions:
Joomla installer warns 'Output Buffering must be Off'
Resolution: Open /etc/php/8.3/apache2/php.ini, locate output_buffering = 4096, change it to output_buffering = Off, and restart Apache with sudo systemctl restart apache2.
Search Engine Friendly (SEF) URLs produce 404 errors
Resolution: Rename the distributed htaccess.txt file in your web root to .htaccess: sudo mv /var/www/joomla/htaccess.txt /var/www/joomla/.htaccess and ensure mod_rewrite is enabled.
Database connection failed during setup
Resolution: Confirm that MariaDB is running and verify user credentials from the command line: mariadb -u joomla_user -p joomla_db.
Security Best Practices and Hardening
Always rename htaccess.txt to .htaccess to enable core security rewrite rules and protect system configuration files.
Enable Multi-Factor Authentication (MFA) in Joomla User Settings for all administrative and manager accounts.
Keep Joomla core, extensions, and PHP updated regularly to protect against known remote code execution CVEs.
Schedule daily automated database dumps using mysqldump and store backups on remote cloud storage.
Related Ubuntu Tutorials and Documentation
Deepen your Linux system administration skills with our related production-tested guides:
Authoritative References and Official Documentation

The Linux Command Line, 2nd Edition: A Complete Introduction
Frequently Asked Questions
Quick answers to common questions and configurations
/administrator to your domain: https://joomla.example.com/administrator.Editorial Disclosure: Website Vidya is supported by our readers. When you purchase hosting, tools, or software through our verified partner links, we may earn an affiliate commission at no extra cost to you. We only recommend solutions we trust and rigorously verify.
Rajesh Ray
I’m Rajesh Rai, a full-stack developer, Linux administrator, and technology enthusiast passionate about making complex technology easier to understand and use.
Most Read Guides
TrendingUbuntu Server Not Booting? 10 Simple Steps to Fix It Fast
How to Create a 3D Button in HTML and CSS: Easy Steps
How to Install Python and Pip on Ubuntu 24.04 LTS
How to Install Nginx on Ubuntu 24.04
How to Install Python on Ubuntu 24.04 LTS
Related Technical Guides
Tested runbooks, server administration walkthroughs, and troubleshooting guides
Join the Conversation & Perspective
Have thoughts, counterpoints, or reflections on this story? Engage directly with fellow readers and editorial contributors.
No comments on this guide yet. Be the first to share your thoughts or ask a question!