Fixing OpenLiteSpeed installation

#1
I just realized that one of my blogs is completely broken; looking to fix it.

I have 2 blogs configured with Wordpress+OpenLiteSpeed docker. The first blog is working perfectly fine.

The second blog is completely broken. The database and articles render fine; but there is none of the theme files in the output.

But first; I had never been able to get the OpenLiteSpeed control panel to show up. Here's my docker compose file. I've setup nginx to reverse proxy "olp.myserver.com" to 5080, with a CertBot certificate. Trying to connect to it gives "The page isn’t redirecting properly".

nginx conf
Code:
server {
    server_name   olp.myserver.com;

    location /.well-known/acme-challenge/ {
        root /var/www/certbot;
    }

    location / {
        proxy_pass         http://127.0.0.1:5081/;
        proxy_http_version 1.1;
        proxy_set_header   Upgrade $http_upgrade;
        proxy_set_header   Connection $connection_upgrade;
        proxy_set_header   Host $host;
        proxy_cache_bypass $http_upgrade;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto $scheme;
    }

    listen [::]:443 ssl; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/olp.myserver.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/olp.myserver.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}

server {
    if ($host = olp.myserver.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot
   
    listen        80;
    listen        [::]:80;
    server_name   olp.myserver.com;
    return 404; # managed by Certbot
}
docker-compose.yml
Code:
services:
  wordpress-mysql:
    image: mariadb:lts-jammy
    container_name: wordpress-mysql
    logging:
      driver: none
    command: ["--max-allowed-packet=512M"]
    volumes:
      - "${LOCAL_STORE}/data:/var/lib/mysql:delegated"
    environment:
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
      MYSQL_DATABASE: ${MYSQL_DATABASE}
      MYSQL_USER: ${MYSQL_USER}
      MYSQL_PASSWORD: ${MYSQL_PASSWORD}
    restart: always
    networks:
      - wordpress
  wordpress-litespeed:
    image: litespeedtech/openlitespeed:${OLS_VERSION}-${PHP_VERSION}
    container_name: wordpress-litespeed
    env_file:
      - .env
    volumes:
      - ${LOCAL_STORE}/lsws-conf:/usr/local/lsws/conf
      - ${LOCAL_STORE}/lsws-admin-conf:/usr/local/lsws/admin/conf
      - ${LOCAL_STORE}/sites:/var/www/vhosts/
      - ${LOCAL_STORE}/acme:/root/.acme.sh/
      - ${LOCAL_STORE}/logs:/usr/local/lsws/logs/
      - ./bin/container:/usr/local/bin
    ports:
      - 5080:80
#      - 443:443
#      - 443:443/udp
      - 5081:7080
    restart: always
    environment:
      TZ: ${TimeZone}
    networks:
      - wordpress
  wordpress-phpmyadmin:
    image: bitnami/phpmyadmin:5.2.1-debian-12-r28
    container_name: wordpress-phpmyadmin
    ports:
      - 5082:8080
#      - 8443:8443
    environment:
        DATABASE_HOST: wordpress-mysql
        PMA_ABSOLUTE_URI: https://phpadmin.myserver.com
    restart: always
    networks:
      - wordpress
  wordpress-redis:
    image: "redis:alpine"
    container_name: wordpress-redis
    logging:
      driver: none
    # command: redis-server --requirepass 8b405f60665e48f795752e534d93b722
    volumes:
      - ${LOCAL_STORE}/redis-data:/var/lib/redis
      - ${LOCAL_STORE}/redis-conf:/usr/local/etc/redis/redis.conf
    environment:
      - REDIS_REPLICATION_MODE=master
    restart: always
    networks:
      - wordpress
networks:
  wordpress:
    driver: bridge
Some help fixing this installation would be appreciated.

First, how can I get the OpenLiteSpeed control panel to work? The PhpMyAdmin panel works.

Second, accessing https://www.shamanicattraction.com/blog/wp-admin/ also throws an error. How can I fix the control panel?

And finally, fixing the blog content itself. I don't know when this broke; since the other blog works, and phpmyadmin works. Debugging this without access to OLP panel is difficult.

Thanks!
 
#3
Spent a great deal of time trying to fix the blog; ended up deleting it and re-creating it (except the database), and eventually got it back online. Not sure what went wrong.

The only thing I still cannot fix is OpenLiteSpeed control panel.

Why docker? I got a whole bunch of websites and services running on the server, isolating them all into docker containers. So I have a configuration that's very easy to deploy onto a new server. If I need to re-install the whole server on a new Debian version, there is barely any configuration at all to get everything back online in the same state. Or if I decide to setup a staging environment.
 
#8
There's another issue that I could never fix. I'm unable to enable QUIC, From LiteSpeed Cache General Settings, requesting a domain key fails.

It sends the request to this URL; which returns 401, not sure if that's normal

https://www.spiritualselftransformation.com/blog/wp-json/litespeed/v1/token

I just switched NGINX reverse proxy to redirect also to HTTPS, to the 443 port instead of 80 port. I also opened 443/udp on my firewall.

Not sure if there's additional configuration for UDP to work? Maybe could double-check if NGINX requires additional config for UDP reverse proxy.

Btw most of my websites are ASP.NET application, which deploy as Docker. Only the blogs use Wordpress, so I'm isolating that.
 
Top