Install WCMS on my Raspberry Pi with CasaOS.
Using Ngnix docker as webserver.
Follow the steps in the docs about the server configuration for Ngnix https://www.wondercms.com/docs/#serverConfigs.
When trying click on the button for login in WCMS, nothing happens
Do a lot of search and trail and error changing the Ngnix default.conf file, but without luck
The thing is, my knowledge about docker is very poor, i think that the issue is find in this snippet, but i'm not sure:
Code: Select all
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}Code: Select all
## Version 2025/05/31 - Changelog: https://github.com/linuxserver/docker-baseimage-alpine-nginx/commits/3.22/root/defaults/nginx/site-confs/default.conf.sample
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
listen 443 quic reuseport default_server;
listen [::]:443 quic reuseport default_server;
server_name _;
include /config/nginx/ssl.conf;
set $root /app/www/public;
if (!-d /app/www/public) {
set $root /config/www;
}
root $root;
index index.html index.htm index.php;
location / {
# enable for basic auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
try_files $uri $uri/ /index.html /index.htm /index.php$is_args$args;
}
location ~ ^(.+\.php)(.*)$ {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
fastcgi_split_path_info ^(.+\.php)(.*)$;
if (!-f $document_root$fastcgi_script_name) { return 404; }
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
# deny access to .htaccess/.htpasswd files
location ~ /\.ht {
deny all;
}
}
This is a php error.log snippet:
Code: Select all
[11-Sep-2025 00:38:11] NOTICE: fpm is running, pid 217
[11-Sep-2025 00:38:11] NOTICE: ready to handle connections
[11-Sep-2025 00:43:50] NOTICE: Terminating ...
[11-Sep-2025 00:43:50] NOTICE: exiting, bye-bye!
[11-Sep-2025 00:43:55] NOTICE: fpm is running, pid 217
[11-Sep-2025 00:43:55] NOTICE: ready to handle connections
[11-Sep-2025 00:45:16] NOTICE: Terminating ...
[11-Sep-2025 00:45:16] NOTICE: exiting, bye-bye!
[11-Sep-2025 00:45:21] NOTICE: fpm is running, pid 217
[11-Sep-2025 00:45:21] NOTICE: ready to handle connections
[11-Sep-2025 01:12:30] NOTICE: Terminating ...
[11-Sep-2025 01:12:30] NOTICE: exiting, bye-bye!Code: Select all
2025/09/11 02:05:32 [crit] 262#262: *1 connect() to unix:/run/php-fpm/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.17, server: 192.168.0.43, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "192.168.0.43:88", referrer: "http://192.168.0.43:88/"
2025/09/11 02:05:39 [crit] 262#262: *1 connect() to unix:/run/php-fpm/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.17, server: 192.168.0.43, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "192.168.0.43:88", referrer: "http://192.168.0.43:8080/"
2025/09/11 02:05:40 [crit] 262#262: *1 connect() to unix:/run/php-fpm/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.17, server: 192.168.0.43, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "192.168.0.43:88", referrer: "http://192.168.0.43:88/"I hope someone can help me, running WCMS without problems.