automad: Cannot login or do anything after installation.

After installation if I try to access /dashboard or any other page than the home page. The home page is rendered regardless of what link I visit. Basically, whatever link I click, the same home page is rendered. I simply cannot do anything. Example gif

I’m trying this on Debian 10, with Nginx as web-server. The configuration is very basic:

server {
	root /srv/www/webapp;
	index index.php index.html index.htm;
	server_name domain.com www.domain.com;
	location / {
		try_files $uri $uri/ /index.php$is_args$args;
	}
	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/run/php/php7.3-fpm.sock;
		include        fastcgi_params;
	}
	location ~ /(bin|config) {
		deny all;
	}
	location ~ /\.ht {
		deny all;
	}
}

There are no errors in error.log and access.log displays the usual.

Is there anything I’m missing in the setup process? I’ve tried both manual and composer methods.

I’ve chowned the files to www-data user:group. Do I need special permissions to a file or folder that I don’t know of?

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

I have the same issue on debian 11 with apache2.4 I took you block at line 88 and created a test file:

Getting request from REQUEST_URI is the TLDR. Request URI and Query parameter are there. Presumably a config issue.

I’m running php fpm 7.4 and other sites work fine (drupal, werkzeug).

It was a missing directive AllowOverride.

EDIT: I also took it out from behind varnish. I run haproxy with varnish in front of apache2.4 but this seems to cause issues.

I’ve switched to caching in haproxy and that seems ok.