Learn how to install the Drupal 10 web content management system on a Linux Ubuntu 22.04 LTS server

A content management system (CMS) is a software application that helps users to create, manage, and publish digital content for websites and web applications. It enables users to easily store, edit, and publish content in an organized manner. CMSs are used by businesses of all sizes to create websites and manage their digital assets. They provide a platform to create, store, organize, and update content quickly while also providing features such as user access control and versioning. With the help of a CMS, businesses can ensure that their website is up-to-date with the latest information without having to manually update it every time.

Drupal is a content management system and in this tutorial, you will learn how to install it. Installing Drupal 10 on an Ubuntu 22.04 LTS Server is a relatively easy task, but it can be daunting for those who are unfamiliar with the process. This step-by-step guide will walk you through the installation process so that you can successfully install Drupal 10 on an Ubuntu 22.04 LTS Server in no time. With this guide, you’ll be able to easily set up the necessary components and configure them properly so that your Drupal 10 installation gets up and running quickly and easily


In order to complete this tutorial, the following is a list of items that may be needed or required. Please ensure to have these items available before taking implementation action on this tutorial to ensure success:
1) A desktop or laptop with a dual-core processor or better, at least 4GB of RAM, and 50GB of free disk space
2) The Linux Ubuntu disk image file
3) VirtualBox or VMware Fusion
4) Alternatively you can use a cloud-hosted Linux Ubuntu server 
5) The OpenLiteSpeed Web Server, MariaDB, LSPHP81 (LOMP) and the Drupal 10 web application files


1) Connect to the Linux Ubuntu server and install package updates
2) Point a domain name or hostname to the Linux Ubuntu Server
3) Download and install the LOMP stack
4) Create a virtual host for Drupal in OpenLiteSpeed
5) Complete the Drupal 10 post installation setup

Step 1: Connect to the Linux Ubuntu server and install package updates

The first step is to connect to your Linux Ubuntu server. Run the following command to check the IP address of the Ubuntu server. This command will return a list of all IPv4 and IPv6 addresses configured on your server.

Identify your LAN or public IP address and run the command below to connect to the server using the Linux / macOS terminal app
If you are using a Windows-based PC, you can user the Putty ssh client to connect to the server.

Step 2: Point a domain name or hostname to the Linux Ubuntu Server

The next step is to point a domain name or hostname to the Linux Ubuntu server. If you are setting up drupal on a publicly hosted VPS, register a domain name on a server such as Amazon Route53, GoDaddy, or Namecheap. Create an A record on the domain and point it to the IP address of your server.

If you are installing in a self-hosted setup such as your desktop or laptop, simply edit the hosts configuration file and add an entry such as:

your-server-ip-address                drupalserver.local

Save and close the hosts configuration file.

Step 3: Download and install the LOMP stack

The next step is to install the LOMP stac. LOMP stands Linux OpenLiteSpeed, LSPHP and MariaDB and is a set of packages that are needed if you would like to deploy a web based application such as Drupal 10, Run the commands below to install OpenLiteSpeed and LSPHP81. 

To set a password for the OpenLiteSpeed web server run the command below and type in a username and password for your administrator user.
Configure the Ubuntu uncomplicated firewall to permit network connections on port 8088, port 7080, port 443 and port 80
Proceed to install the MariaDB database engine. Once the installation is complete, run the mysql secure installation script:

The script will ask some questions and below are some sample responses that you can enter:

Enter current password for root (enter for non): PRESS ENTER ON YOUR KEYBOARD
Switch to unix_socket authentication? [Y/n] n
Change the root password? [Y/n] n
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y

Next connect to the MariaDB monitor and run the following commands to create a database for drupal:

Step 4: Create a virtual host for Drupal in OpenLiteSpeed

The next step is to create a virtual host for Drupal in OpenLiteSpeed Web Server. Start by creating a virtual host directory on the Ubuntu server by executing the commands below:

Run a simple google search for “Drupal Download” and click on the Drupal download page search result. Copy the link for the Drupal Zip file and use wget to download the zip file:

When the download is complete, install unzip and unzip the drupal zip file:
Set the name of the folder containing the Drupal web application files to /public and set the necessary permissions:

Open a new browser window and go to http://your-server-ip:7080. Type in your OpenLiteSpeed username and password to login. Click Virtual Hosts and delete the default Virtual Host. Click Add and set the following parameters:

Virtual Host Name = DRUPALSVRSH
Virtual Host Root = $SERVER_ROOT/drupalsvr
Config File = $SERVER_ROOT/conf/vhosts/$DRUPALSVR/vhconf.conf
Enable Scripts / ExtApps = Yes
Restrained = No

Click Save and click CLICK TO CREATE

Click View on the Drupal virtual host that you have created and click General. Click Edit and set Document Root = $VH_ROOT/public. Click Save to apply changes. Click edit on the Index Files section and set Index Files to index.html, index.php. Set Auto Index to No and click Save. Click on the  Rewrite tab and click Edit on  Rewrite Control. Set Enable Rewrite = Yes, Auto Load for .htaccess = Yes and click Save

Click Listeners and click edit on the Default listener. Click Edit on the Address Settings section and set Port = 80. Scroll down to Virtual Host Mappings and click Add. Set Virtual Host to DRUPALSVRVH and type in your domain name on the Domains field then click Save to apply changes. 

Click Server Configuration on the left menu list and click External App. Click Edit and set Name to lsphp81. Set Address to uds://tmp/lshttpd/lsphp81.sock and set Command to lsphp81/bin/lsphp. Click Save to apply changes and restart OpenLiteSpeed for all changes to take effect.

Step 5: Complete the Drupal 10 post installation setup

The final step is to complete the Drupal 10 post installation setup. Open a new browser window and type in the domain you configured for your Drupal server. Choose a language and click Save and Continue. On the SELECT AN INSTALLATION PROFILE page, select STANDARD and click Save and Continue

On the DATABASE CONFIGURATION page, type in the database name, database username and database password for the MariaDB database you created in Step 3 and click Save and Continue.

Type in your site information such as the name of your site and an administrator username and passsword and click Save and continue. You will now see the Drupal dashboard and from here you can now start adding content and designing your website. I hope this tutorial has been informative and i would like to thank you for viewing.