# Install OpenLiteSpeed and WordPress on AlmaLinux 10 (No Panel)

Source: https://srvscripts.com/guides/openlitespeed-wordpress-almalinux-10/
Updated: 2026-10-06
Publisher: srvScripts (https://srvscripts.com/)

**Short answer:** Add the LiteSpeed repository with `wget -O - https://repo.litespeed.sh | bash`, install `openlitespeed` and an LSPHP build such as `lsphp84` with its MySQL, GD, XML and mbstring modules, install `mariadb-server` from AlmaLinux AppStream, then create a virtual host in the WebAdmin console on port 7080 that points at your WordPress folder and uses LSPHP. Enable .htaccess rewrites, add a Let’s Encrypt certificate with certbot, and install the LiteSpeed Cache plugin.

Commands checked against the official OpenLiteSpeed documentation (linked below) on 6 October 2026; not yet run on our lab servers. Package names were checked against the LiteSpeed and AlmaLinux 10 repository metadata on the same day.

## Before you start

- A fresh AlmaLinux 10 server with root access. AlmaLinux 10 needs a CPU with x86-64-v3; check with `/lib64/ld-linux-x86-64.so.2 --help | grep x86-64-v3`.

- A domain (example.com below) with A records for `example.com` and `www.example.com` pointing to the server.

- Nothing else listening on ports 80, 443 or 7080. Do not install Apache or nginx alongside.

Update the system first:

```
dnf -y update && reboot
```

## Add the LiteSpeed repository

The OpenLiteSpeed docs use LiteSpeed’s repository script. It detects the OS and writes `/etc/yum.repos.d/litespeed.repo` with the EL10 package path. Read it before you pipe it to a shell; on EL9 and newer it also installs the Remi release package and `epel-release`, and enables the CRB repository, so you end up with three extra repositories.

```
curl -s https://repo.litespeed.sh -o /root/litespeed-repo.sh
less /root/litespeed-repo.sh        # review it
bash /root/litespeed-repo.sh
dnf repolist
```

## Install OpenLiteSpeed and LSPHP

```
dnf -y install openlitespeed
```

When we read the repository metadata on 6 October 2026, the EL10 `openlitespeed` package (1.9.3) pulled in `lsphp83` and a few of its modules as dependencies. For a new WordPress site, install a current LSPHP build with the modules WordPress uses. These package names all exist in the EL10 repository:

```
dnf -y install lsphp84 lsphp84-common lsphp84-mysqlnd lsphp84-gd lsphp84-mbstring \
  lsphp84-xml lsphp84-process lsphp84-opcache lsphp84-intl lsphp84-zip lsphp84-pecl-imagick

/usr/local/lsws/lsphp84/bin/php -v
/usr/local/lsws/lsphp84/bin/php -m | grep -Ei "mysqli|gd|mbstring|xml|zip|intl|imagick"
```

Use `dnf search lsphp` to see other versions. On RHEL-family systems the MySQL module is called `-mysqlnd`; on Debian and Ubuntu it is `-mysql`.

Start the server and set the WebAdmin password:

```
systemctl enable --now lsws
/usr/local/lsws/admin/misc/admpass.sh
```

Open the firewall for the web ports, and allow the admin console only from your own address (198.51.100.25 here):

```
firewall-cmd --permanent --add-service=http --add-service=https
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="198.51.100.25" port port="7080" protocol="tcp" accept'
firewall-cmd --reload
```

The console is now at `https://203.0.113.10:7080/` with a self-signed certificate. The default virtual host is called Example and listens on port 8088; you can leave it or delete it later.

## Install MariaDB and create the database

AlmaLinux 10 AppStream ships MariaDB 10.11 as `mariadb-server` (10.11.18 when we checked).

```
dnf -y install mariadb-server
systemctl enable --now mariadb
mariadb-secure-installation
```

Create a database and user for WordPress. Use your own strong password:

```
mariadb
