Apache2 no permission to access /index.php/login

Hey folks,
I have installed apache2 webserver and configured it as described in the doku here
If I type the ip address of the server in my browser I get the error message:


You don’t have permission to access /index.php/login on this server.

I’ve checked the permission of /var/www/nextcloud. The owner of the folder is www-data

What is wrong with my apache2 / nextcloud configuration?

Solved by my own. I changed the owner for /var/www from root to www-data and added the permissions to 2770. Now it works, but I see the apache2 default configuration page if I type the IP address of the server. If I type adress/nextcloud a get a download from “nextcloud.dms” file. Very strange!

Sounds like you didn’t change the apache conf / doc root directive

apache doc root default is /var/www/html

need to change doc root to /var/www/html/nextcloud

or paths adjusted to your set up