THEX Panel — Installation Center
A clean, documentation-style control center for OpenLiteSpeed hosting, LSPHP 7.4 and MariaDB, with website management, databases, file management, phpMyAdmin access, SSL workflows and server administration.
Platform Specifications
Core software included in the current release.
Installation
Recommended one-command installation on a clean Ubuntu 22.04 amd64 server.
Prepare a clean server
Use Ubuntu 22.04 LTS amd64 with root access.
Run the online installer
The installer downloads the panel package and required software from the configured release host.
Run the built-in repair stage
The installer downloads and runs the OpenLiteSpeed repair script automatically.
Apply the database security update
On existing installations, run the Security Update command once so the THEX panel can create users and assign database privileges.
Login and change the password
Open the THEX panel and immediately replace the initial credentials.
curl -4 -fsSL https://fil.thex.cam/install.sh | bash
Repair & Recovery
The repair script is independent from the panel application.
What the repair script handles
Run repair manually
Use this on an existing THEX installation.
chmod +x /tmp/THEX-post-install-fix.sh
bash /tmp/THEX-post-install-fix.sh
Security Update
Required database administration permissions for the current THEX panel workflow.
What changed
The current THEX database workflow creates databases and users separately, then assigns users with ALL PRIVILEGES.
Apply the required database grant
Run as root or another MariaDB administrative account.
mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'thex_user'@'localhost' WITH GRANT OPTION; FLUSH PRIVILEGES;"
# Verify the final grant
mysql -e "SHOW GRANTS FOR 'thex_user'@'localhost';"
Recommended verification
Confirm that a database user can access its assigned database.
mysql -u adam -p -e "USE adam; SHOW TABLES;"
WordPress Update
Compatibility fix for themes that use PHP short open tags on LSPHP 7.4.
Why this update is needed
Some WordPress themes use short PHP tags such as <?. The existing server was configured with short tags disabled, which caused a PHP parse error in the theme.
Apply the WordPress compatibility update
Run the following commands as root.
/usr/local/lsws/lsphp74/bin/lsphp --ini
# Enable PHP short open tags
sed -i 's/^[;[:space:]]*short_open_tag[[:space:]]*=.*/short_open_tag = On/' /usr/local/lsws/lsphp74/etc/php/7.4/litespeed/php.ini
# Add the setting if it does not exist
grep -qE '^[[:space:]]*short_open_tag[[:space:]]*=' /usr/local/lsws/lsphp74/etc/php/7.4/litespeed/php.ini || echo 'short_open_tag = On' >> /usr/local/lsws/lsphp74/etc/php/7.4/litespeed/php.ini
# Verify the setting
/usr/local/lsws/lsphp74/bin/lsphp -i | grep -i '^short_open_tag'
# Restart OpenLiteSpeed
/usr/local/lsws/bin/lswsctrl restart
Verify WordPress theme PHP syntax
Use the same LSPHP binary that OpenLiteSpeed runs.
/usr/local/lsws/lsphp74/bin/lsphp -l /var/www/my.thex.cam/html/wp-content/themes/CimaNew/functions.php
<? tags, the server-side compatibility setting above fixes the issue without rewriting the theme.
SSL Setup
Install Certbot on Ubuntu and verify that the SSL certificate management tool is available.
1. Install Certbot
Run these commands as root on the server.
apt update
# Install Certbot
apt install -y certbot
2. Verify Certbot
Confirm that Certbot was installed correctly.
certbot --version
3. SSL Preparation Checklist
Complete these checks before requesting a certificate for a domain.
OpenLiteSpeed & WordPress URLs
Enable WordPress rewrite rules and load each site's .htaccess automatically.
1. Enable Rewrite in the vHost
Example for my.thex.cam.
nano /usr/local/lsws/conf/vhosts/my.thex.cam/vhconf.conf
# Make sure this exists
rewrite {
enable 1
autoLoadHtaccess 1
}
2. Enable Rewrite in the Root Context
Use the site's actual document root.
type static
location /var/www/my.thex.cam/html/
allowBrowse 1
enableRewrite 1
}
3. Validate and Restart OpenLiteSpeed
Run the configuration test before restarting the web server.
/usr/local/lsws/bin/openlitespeed -t
# Restart OpenLiteSpeed
/usr/local/lsws/bin/lswsctrl restart
4. WordPress .htaccess Rules
Keep WordPress's generated rewrite block in the site's document root.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
5. Save WordPress Permalinks
After enabling rewrite support, refresh the WordPress permalink configuration.
Quick Verification
Use these checks after creating or repairing a WordPress site.
ss -lntp | grep -E ':(80|443)\b'
# Check the site vHost file
grep -nE 'rewrite|autoLoadHtaccess|enableRewrite' /usr/local/lsws/conf/vhosts/my.thex.cam/vhconf.conf
Release Downloads
Public release endpoints used by the installer.