RPi/Buster + Apache
Yesterday I tried to install Owncloud and ran into all kinds of errors with Apache. So in a moment of throwing things against the wall I decided to install Nextcloud. I wasn’t familiar with Nextcloud prior but decided it was probably a more suitable implementation for my needs anyway. I hoped that Nextcloud install would correct the issue. It did not, and likely made things worse… I am hoping people here will help me get it straight! Note that Apache was installed previously.
So… after completing Nextcloud installation, 192.168.1.x/nextcloud/ loads the flat PHP file. In other words, Apache is not processing PHP/HTML/CSS etc. I know this is an apache config issue but I can’t figure it out for the life of me. As well, I believe I have created another problem. As well, I am unable to load the DocumentRoot. I get a 403 Forbidden error.
By way of troubleshooting I have searched via google, and gone through all of the apache .conf files. I set the DocumentRoot and /var/www/html and then to /var/www and I added the .htaccess handler to …/000-default.conf. I have also updated/upgraded all packages, restarted apache, and rebooted. I also set apache log reporting to debug. Here is what I get from the logs after trying to load /nextcloud:
AH01630: client denied by server configuration: /var/www/owncloud, referer: http://192.168.1.120/nextcloud/
"GET /favicon.ico HTTP/1.1" 403 498 "http://192.168.1.120/nextcloud/"
I have been hitting my head against the wall for the better part of two days… so any help putting it straight much appreciated!