How to Install Joomla with OpenLiteSpeed 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.
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.
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.
sudo unzip -d /usr/local/lsws/Example/joomla /tmp/Joomla_4-0-2-Stable-Full_Package.zipNext, run the commands below to change the permissions of the Joomla folder to run on OpenLiteSpeed.
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:
sudo mysql -u root -p
Then create a database called joomladb
CREATE DATABASE joomladb;Next, create a database user called joomladbuser and set a password
CREATE USER 'joomladbuser'@'localhost' IDENTIFIED BY 'new_password_here';
Then grant the user full access to the database.
GRANT ALL ON wpdb.* TO 'joomladbuser'@'localhost' WITH GRANT OPTION;Finally, save your changes and exit.
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.
https://localhost:7080/login.php
Login using the admin login details above.

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.
$VH_ROOT/joomla/
On the same General tab, edit the Index Files section and replace index.html with index.php shown below.
index.php

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

Next, under Virtual Hosts ==> Rewrite, edit the Rewrite Rules. Copy and paste the lines below into the rules box, and save.
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]
After making all the changes above, reload OpenLiteSpeed.

Finally, open your web browser and browse to the server hostname or IP address.
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.

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

Next, validate that all requirements and packages are installed.
After that, click Install to complete the wizard.

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

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

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?
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.
No comments yet — be the first to share your thoughts!