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
docker-compose.yml
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
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!
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
}
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
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!