CMS

Install WordPress on Ubuntu with OpenLiteSpeed

Richard
Written by
Richard
Sep 12, 2021 Updated Mar 18, 2026 5 min read
Install WordPress on Ubuntu with OpenLiteSpeed

This post shows students and new users steps to install WordPress CMS on Ubuntu Linux with OpenLiteSpeed web server.

When web admins think of hosting a WordPress website, most choose between Apache and Nginx web servers.

Few people have heard of OpenLiteSpeed, not because it’s terrible, but because it’s not widely used or popular. Many good things have been written about OpenLiteSpeed, and if you want to test it yourself, continue below.

OpenLiteSpeed is an open-source web server developed by LiteSpeed Technologies. It is designed to be lightweight and comes with an admin panel to manage the server easily from your favorite web browsers.

If you want to run your WordPress website on OpenLiteSpeed instead of Apache or Nginx, continue below to learn how to install it and run WordPress.

How to install OpenLiteSpeed on Ubuntu Linux

We have written a post about installing OpenLiteSpeed on Ubuntu Linux. Before installing WordPress, click on the link below to install OpenLiteSpeed.

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

Now that OpenLiteSpeed is installed, download the package to install. Run the commands below to download the latest version of WordPress.

Command Prompt
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.

🐧Bash / Shell
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.

🐧Bash / Shell
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

At this point, we’re ready to create a WordPress database. As mentioned above, WordPress uses databases to store its content.

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

🐧Bash / Shell
sudo mysql -u root -p

Then, create a database called wpdb

💻Code
CREATE DATABASE wpdb;

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

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

Then, grant the user full access to the database.

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

Finally, save your changes and exit.

💻Code
FLUSH PRIVILEGES;
EXIT;

How to configure OpenLiteSpeed to support WordPress

Next, log on to the OpenLiteSpeed admin panel to configure WordPress settings.

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

Login using the admin login details above.

OpenLiteSpeed admin panel interface on Ubuntu

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.

PowerShell
$VH_ROOT/wordpress/
WordPress document root configuration on OpenLiteSpeed

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

🐘PHP
index.php
WordPress index file setup on OpenLiteSpeed

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

Save your change.

Enabling rewrite control for WordPress on OpenLiteSpeed

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

🐘PHP
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
WordPress rewrite rules configuration for OpenLiteSpeed

After making all the changes above, reload OpenLiteSpeed.

Reloading changes in OpenLiteSpeed server settings

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

💻Code
http://localhost

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

WordPress Ubuntu Installation

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)

The wizard will use the database information to create a wp-config.php file in the WordPress root folder.

If this automatic file creation doesn’t work for any reason, don’t worry. All this does is fill in the database information to a configuration file. You may also simply open wp-config-sample.php in a text editor, fill in your information, and save it as wp-config.php.

WordPress Ubuntu Installation

Next, type in the database connection info and click Submit

WordPress Ubuntu Installation

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

WordPress Ubuntu Installation

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

WordPress installation on Ubuntu

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

WordPress Ubuntu install

That should do it!

Conclusion:

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

Frequently Asked Questions

How do I install OpenLiteSpeed on Ubuntu?

To install OpenLiteSpeed on Ubuntu, you need to follow specific commands to add the repository and install the server. After that, you can configure it through the admin panel to suit your needs.

What are the requirements for running WordPress on OpenLiteSpeed?

To run WordPress on OpenLiteSpeed, you need to have OpenLiteSpeed installed, along with the latest PHP version and a database server like MariaDB. These components are essential for WordPress to function properly.

How can I create a WordPress database on Ubuntu?

You can create a WordPress database by accessing the MySQL command line and executing commands to create a database and a user. Make sure to grant the user the necessary permissions to manage the database.

What is OpenLiteSpeed and why should I use it for WordPress?

OpenLiteSpeed is an open-source web server that is lightweight and designed for high performance. It offers an easy-to-use admin panel and can be a great alternative to Apache or Nginx for hosting WordPress.

How do I configure OpenLiteSpeed to support WordPress?

To configure OpenLiteSpeed for WordPress, log into the admin panel and navigate to the Virtual Hosts section. Here, you can set the Document Root to point to your WordPress installation directory and adjust other settings as needed.

Was this guide helpful?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, the owner and lead writer at Geek Rewind, is a tech enthusiast passionate about simplifying complex IT topics. His years of hands-on experience in system administration and enterprise IT operations have honed his ability to provide practical insights 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.

2458 articles → Twitter

📚 Related Tutorials

How to Setup WordPress with Nginx and Cloudflare on Ubuntu
CMS How to Setup WordPress with Nginx and Cloudflare on Ubuntu

Leave a Reply

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