Skip to content
Follow
Ubuntu Linux

How to Install Joomla with OpenLiteSpeed on Ubuntu Linux

Richard
Written by
Richard
Sep 13, 2021 Updated Jun 20, 2026 4 min read
How to Install Nextcloud AIO on Ubuntu Linux
How to Install Nextcloud AIO on Ubuntu Linux

You install Joomla CMS on Ubuntu Linux using the OpenLiteSpeed web server by following clear steps.

OpenLiteSpeed is a fast, open-source web server from LiteSpeed Technologies, known for its efficiency and easy-to-use admin panel.

This setup offers a lightweight, powerful alternative to Apache or Nginx for hosting your Joomla sites, particularly effective on Ubuntu 22.04 LTS.

You will configure OpenLiteSpeed and then proceed with your Joomla installation.

⚡ Quick Answer

First, install OpenLiteSpeed, download and extract Joomla to the OpenLiteSpeed directory, and create a Joomla database. Then, configure OpenLiteSpeed Virtual Hosts to point to the Joomla folder and enable rewrite rules. Finally, reload OpenLiteSpeed and complete the Joomla setup wizard in your browser.

How to install OpenLiteSpeed on Ubuntu Linux

You’ll start by installing OpenLiteSpeed on your Ubuntu server, which is the first step to getting Joomla up and running.

This post below shows you how to install OpenLiteSpeed, the latest PHP version, and the MariaDB database server. Those three components are required to run Joomla.

How to Install OpenLiteSpeed on Ubuntu Linux – Website for Students

After installing OpenLiteSpeed, continue below.

How to download Joomla on Ubuntu Linux for OpenLiteSpeed

Once OpenLiteSpeed is set up, the next step is to download the Joomla package onto your Ubuntu server so you can install it.

Command Prompt
cd /tmp
wget https://downloads.joomla.org/cms/joomla4/4-0-2/Joomla_4-0-2-Stable-Full_Package.zip

After extracting the Joomla archive, move the Joomla content into the OpenLiteSpeed default VirtualHost directory.

🐧Bash / Shell
sudo unzip -d /usr/local/lsws/Example/joomla /tmp/Joomla_4-0-2-Stable-Full_Package.zip

Next, run the commands below to change the permissions of the Joomla folder to run on OpenLiteSpeed.

🐧Bash / Shell
sudo chown -R nobody:nogroup /usr/local/lsws/Example/joomla/
sudo chmod -R 755 /usr/local/lsws/Example/joomla/

How to create a Joomla database on Ubuntu

To make Joomla work correctly, you need to create a specific database for it on your Ubuntu system using a few simple commands.

To create a database for Joomla, run the commands below:

🐧Bash / Shell
sudo mysql -u root -p

Then create a database called joomladb

💻Code
CREATE DATABASE joomladb;

Next, create a database user called joomladbuser and set a password

💻Code
CREATE USER 'joomladbuser'@'localhost' IDENTIFIED BY 'new_password_here';

Then grant the user full access to the database.

💻Code
GRANT ALL ON wpdb.* TO 'joomladbuser'@'localhost' WITH GRANT OPTION;

Finally, save your changes and exit.

💻Code
FLUSH PRIVILEGES;
EXIT;

How to configure OpenLiteSpeed to support Joomla

You’ll need to log into the OpenLiteSpeed admin panel to configure it so that it properly supports your Joomla website.

🐘PHP
https://localhost:7080/login.php

Login using the admin login details above.

OpenLiteSpeed admin panel interface on Ubuntu
openlitespeed admin panel

After logging on, go to the Virtual Hosts ==> General tab and edit the Document Root location section.

Then edit the Document Root to point to the Joomla folder created above.

PowerShell
$VH_ROOT/joomla/
Document root configuration for WordPress on OpenLiteSpeed
wordpress on openlitespeed document root

On the same General tab, edit the Index Files section and replace index.html with index.php shown below.

🐘PHP
index.php
Index file setup for WordPress on OpenLiteSpeed
wordpress on openlitespeed index file

Next, go to Virtual Hosts ==> Rewire Rules, edit Rewrite Control, then choose Yes to enable rewrite.

Save your change.

Enabling rewrite control in OpenLiteSpeed for WordPress
wordpress enable rewrite control

Next, under Virtual Hosts ==> Rewrite, edit the Rewrite Rules. Copy and paste the lines below into the rules box, and save.

🐘PHP
RewriteRule /.* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|.(php|html?|feed|pdf|vcf|raw))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /.* /joomla/index.php [L]
Rewrite rules configuration for OpenLiteSpeed WordPress
wordpress rewrite rules openlitespeed

After making all the changes above, reload OpenLiteSpeed.

Reloading changes in OpenLiteSpeed server settings
openlitespeed reload changes

Finally, open your web browser and browse to the server hostname or IP address.

💻Code
http://localhost

A Joomla setup wizard should appear. Follow the wizard to complete the setup.

Select the installation language, Site Name, and Super User account details, including email address, username, and password.

Then click Next to continue.

Joomla installation on Ubuntu
joomla ubuntu installation

Enter the database info created above on the next screen and click Next to continue.

Joomla installation on Ubuntu
joomla ubuntu installation 1

Next, validate that all requirements and packages are installed.

After that, click Install to complete the wizard.

Joomla installation on Ubuntu
joomla ubuntu installation 2

You can now log in to the admin backend and set up your website environment.

Joomla installation on Ubuntu
joomla ubuntu installation 3

When you’re done, Joomla should be installed and ready to use. Login as admin and begin configuring your site.

Joomla installation on Ubuntu
joomla ubuntu installation 4

That’s it!

Conclusion:

This post showed you how to install Joomla on Ubuntu Linux with the OpenLiteSpeed web server. Please use the comment form below if you find any errors above or have something to add.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Mount Windows 11 Shares on Ubuntu Linux
Ubuntu Linux How to Mount Windows 11 Shares on Ubuntu Linux
How to Setup Joomla on Ubuntu with Nginx & Cloudflare
CMS How to Setup Joomla on Ubuntu with Nginx & Cloudflare
How to install Open-VM Tools on Ubuntu 24.04
Ubuntu Linux How to install Open-VM Tools on Ubuntu 24.04
Install Joomla with Lighttpd on Ubuntu 24.04
CMS Install Joomla with Lighttpd on Ubuntu 24.04

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *