Raspian / nginx / mariadb install of nextcloud almost works

I’ve been working on getting nextcloud up and running on my raspberry pi 3 and have almost succeeded.

To this point, I’ve managed to get the initial setup screen where I create a new user and specify the data base.

However, when I try to set up the user and connect to the data base, the web page reports “finishing” and it eventually times out.

Any further attempt to access the index.php page redirects to /index.php/login or /apps/files and returns a 404 error.

I’m currently accessing this on my local network and I am not using https nor did I set up SSL certificates.

Clearly, setup doesn’t complete, but I have no idea why.

I should note that the user account does get set up. I know because the second time I tried, I used the same user name and got an error, indicating it exists. So the problem lay with the database connection, it seems.

Any ideas on where I can start looking for clues?

I think it could be your permissions for your database user? Could be this didn’t get applies:
GRANT ALL PRIVILEGES ON nextcloud.* TO nextclouduser@localhost;

where nextclouduser is the name of the user you made for your nextcloud database.

Another thought may be file/directory permissions for your nextcloud instance. After all that I would restart maria/nginx/php-fpm for good measure