So I’m rather confused I can’t get this to work as I’ve done this a handful of times before, but this time I’m running into a roadblock. Here’s what I’ve done:
Put all my nextcloud contents in /var/www/html/nextcloud
Tried having my webroot be /var/www/html and /var/www/html/nextcloud
my www-data user has ownership over everything except I gave user ownership to root for the .htaccess files.
And here are the lines I have added to my default apache nextcloud.conf file at the very end:
Alias /nextcloud “/var/www/html/nextcloud/”
<Directory /var/www/html/nextcloud/>
Options +FollowSymlinks
AllowOverride All
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
I also have my mysql database created, but that doesn’t really matter because I can’t even get to the spot where I can even hook it up. When I try to visit the website for the first time I get this error:
“You don’t ahve permission to access / on this server.
Server unabled to read htaccess file, denying access to be safe”