Automad with my_webapp

What app is this about, and its version: my_webapp
What YunoHost version are you running: latest
What type of hardware are you using: VPS bought online

Describe your issue

hi,

could use some help setting up automad with my_webapp. seems it can read the index.php, but all sub directories (php scripts?) are not working. played around with nginx conf files, but to no avail.. :expressionless:
also tried php 8.2 and 8.4. dont see any error inside the /var/logs/php* files.
does my_webapp have its own logs somewhere?

old ynh automad repo
automad repo

any help would be apreciated!

Share relevant logs or error messages

[01-Jun-2026 19:24:32] NOTICE: Reloading in progress …
[01-Jun-2026 19:24:32] NOTICE: reloading: execvp(“/usr/sbin/php-fpm8.2”, {“/usr/sbin/php-fpm8.2”, “–nodaemonize”, “–fpm-config”, “/etc/php/8.2/fpm/php-fpm.conf”})
[01-Jun-2026 19:24:32] NOTICE: using inherited socket fd=8, “/run/php/php8.2-fpm.sock”
[01-Jun-2026 19:24:32] NOTICE: fpm is running, pid 1533168
[01-Jun-2026 19:24:32] NOTICE: ready to handle connections
[01-Jun-2026 19:24:32] NOTICE: systemd monitor interval set to 10000ms
[01-Jun-2026 19:24:35] NOTICE: configuration file /etc/php/8.2/fpm/php-fpm.conf test is successful

[01-Jun-2026 19:24:35] NOTICE: Reloading in progress …
[01-Jun-2026 19:24:35] NOTICE: reloading: execvp(“/usr/sbin/php-fpm8.2”, {“/usr/sbin/php-fpm8.2”, “–nodaemonize”, “–fpm-config”, “/etc/php/8.2/fpm/php-fpm.conf”})
[01-Jun-2026 19:24:35] NOTICE: using inherited socket fd=8, “/run/php/php8.2-fpm.sock”
[01-Jun-2026 19:24:35] NOTICE: using inherited socket fd=9, “/var/run/php/php8.2-fpm-my_webapp.sock”
[01-Jun-2026 19:24:35] NOTICE: fpm is running, pid 1533168
[01-Jun-2026 19:24:35] NOTICE: ready to handle connections
[01-Jun-2026 19:24:35] NOTICE: systemd monitor interval set to 10000ms
[01-Jun-2026 19:25:26] NOTICE: Terminating …
[01-Jun-2026 19:25:26] NOTICE: exiting, bye-bye!
[01-Jun-2026 19:25:26] NOTICE: fpm is running, pid 1538786
[01-Jun-2026 19:25:26] NOTICE: ready to handle connections
[01-Jun-2026 19:25:26] NOTICE: systemd monitor interval set to 10000ms
[01-Jun-2026 19:25:40] NOTICE: Terminating …
[01-Jun-2026 19:25:40] NOTICE: exiting, bye-bye!
[01-Jun-2026 19:25:41] NOTICE: fpm is running, pid 1539185
[01-Jun-2026 19:25:41] NOTICE: ready to handle connections
[01-Jun-2026 19:25:41] NOTICE: systemd monitor interval set to 10000ms
[01-Jun-2026 19:26:04] NOTICE: Terminating …
[01-Jun-2026 19:26:04] NOTICE: exiting, bye-bye!
[01-Jun-2026 19:26:04] NOTICE: fpm is running, pid 1539546
[01-Jun-2026 19:26:04] NOTICE: ready to handle connections
[01-Jun-2026 19:26:04] NOTICE: systemd monitor interval set to 10000ms
[02-Jun-2026 07:10:13] NOTICE: configuration file /etc/php/8.2/fpm/php-fpm.conf test is successful

this is the homepage all sub pages have a 404 error

automad-docker nginx config

installed those (again on 8.4)

apt install php8.4-gd php8.4-zip php8.4-curl

working nginx conf setup →

my_webapp.conf

#sub_path_only rewrite ^/$ / permanent;

location / {



# Path to source

# alias /var/www/my_webapp/www/;

root /var/www/my_webapp/www;



# Default indexes and catch-all

index index.php index.html;

# try_files $uri $uri/ /index.php?$args =404;

try_files $uri $uri/ /index.php$is_args$args;



# Prevent useless logs

location = /favicon.ico {

log_not_found off;

access_log off;

}



location = /robots.txt {

allow all;

log_not_found off;

access_log off;

}



# Deny access to hidden files and directories

location ~ ^/(.+/|)\.(?!well-known\/) {

deny all;

}



include conf.d/3demo.info.d/my_webapp.d/*.conf;



# Include SSOWAT user panel.

include conf.d/yunohost_panel.conf.inc;

}

php.conf

# Execute and serve PHP files

location ~ \.php$ {

fastcgi_split_path_info ^(.+?\.php)(/.*)$;

fastcgi_pass unix:/var/run/php/php8.4-fpm-my_webapp.sock;

fastcgi_index index.php;

include fastcgi_params;

fastcgi_param REMOTE_USER $remote_user;

fastcgi_param PATH_INFO $fastcgi_path_info;

# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;

}