Install WordPress on Ubuntu with OpenLiteSpeed
Installing WordPress on Ubuntu with OpenLiteSpeed sets up a fast and free website hosting environment using the OpenLiteSpeed 1.8 web server and the WordPress 6.5.1 content management system. OpenLiteSpeed is a high-speed web server that handles heavy traffic better than older servers like Apache or Nginx while keeping setup simple for everyday users.
Pairing this server with Ubuntu creates a lightweight platform that makes your pages load much faster. You manage the whole system through a built-in web control panel so you do not need advanced technical skills to run your site.
Install OpenLiteSpeed and the MariaDB server first. Then, download WordPress, move it to the OpenLiteSpeed directory, and set permissions. Create a WordPress database and user, then configure OpenLiteSpeed’s Virtual Hosts to point to your WordPress installation and enable rewrite rules.
How to install OpenLiteSpeed on Ubuntu Linux
Installing OpenLiteSpeed on Ubuntu Linux involves setting up the web server, the latest PHP version, and the MariaDB database, which are all needed to run WordPress smoothly.
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 WordPress.
How to Install OpenLiteSpeed on Ubuntu Linux – Website for Students
After installing OpenLiteSpeed, continue below.
How to download WordPress on Ubuntu Linux for OpenLiteSpeed
After setting up OpenLiteSpeed on Ubuntu Linux, you'll download the latest WordPress files using commands and move them to the right folder. This makes sure OpenLiteSpeed can find and use your WordPress site.
cd /tmp wget https://wordpress.org/latest.tar.gz tar -zxvf latest.tar.gz
After extracting the WordPress archive, move the WordPress content into the OpenLiteSpeed default VirtualHost directory.
sudo mv /tmp/wordpress /usr/local/lsws/Example/wordpress
Next, run the commands below to change the permissions of the WordPress folder to run on OpenLiteSpeed.
sudo chown -R nobody:nogroup /usr/local/lsws/Example/wordpress/ sudo chmod -R 755 /usr/local/lsws/Example/wordpress/
How to create a WordPress database on Ubuntu
Creating a WordPress database on Ubuntu is a necessary step to store all your website's content, like posts and user details. This guide shows you the exact commands to set up a new database and user for WordPress.
To create a database for WordPress, run the commands below:
sudo mysql -u root -p
Then, create a database called wpdb
CREATE DATABASE wpdb;
Next, create a database user called wpdbuser and set a password
CREATE USER 'wpdbuser'@'localhost' IDENTIFIED BY 'new_password_here';
Then, grant the user full access to the database.
GRANT ALL ON wpdb.* TO 'wpdbuser'@'localhost' WITH GRANT OPTION;
Finally, save your changes and exit.
FLUSH PRIVILEGES; EXIT;
How to configure OpenLiteSpeed to support WordPress
Configuring OpenLiteSpeed to support WordPress involves logging into its admin panel and setting the Document Root. This tells the server where your WordPress files are, which is essential for your website to load correctly.
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 WordPress folder created above.
$VH_ROOT/wordpress/

On the same General tab, edit the Index Files section and replace index.html with index.php, as 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 ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /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 WordPress setup wizard should appear. Follow the wizard to complete the setup.

You will need to know the following items before proceeding. Use the database connection info you created above.
- Database name
- Database Username
- Database password
- Database host
- Table prefix (if you want to run more than one WordPress in a single database)

Next, type in the database connection info and click Submit

After that, click the Run the Installation button to have WordPress complete the setup.

Next, create the WordPress site name and the backend admin account, then click Install WordPress.

When you're done, WordPress should be installed and ready to use.

That should do it!
Conclusion:
This guide explains installing WordPress on Ubuntu Linux with the OpenLiteSpeed web server. Report errors or share information about the WordPress installation process using the comment form below this page.
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!