So I’m somewhat new to Linux. I’ve been around the block with various OS’s thoughout the years, but this problem just keeps stumping me. I’ve tried just about every “sure fix” I’ve found on the forums here, reddit, etc. to no avail.
This should be simple enough, so I am missing something, and could really use some help finding it.
I’m going to explain everything I’ve done, in an attempt to paint a picture of my current setup, in the hopes that maybe something stands out to the people who know more than me, ha.
Brand new Ubuntu 20.04.2.0 Server installation. 3 drives total. 1 SSD for OS. 2 NAS drives for RAID. Soft RAID created by Linux installer during OS installation. Usual update/upgrade packages as soon as I get to CL for the first time. Then installed GNOME. (ubuntu-desktop) variant.
Other than that, it’s a blank canvas. Then proceed to install LAMP stack. Using LinuxBabe instructions for reference. Move on to Nextcloud Installation. Also using LinuxBabe instructions. I should note the instructions work flawlessly when using default locations listed in the instructions. (/var/www & /var/www/nextcloud etc.)
Trying to change the “data” directory to the RAID is not as simple as it “should” be. So I feel I am missing something. First issue was that the nextcloud web interface during initial setup would kick back a message saying it couldn’t access the directory of my choosing (RAID). I had set www-data as the owner:group for the RAID itself, not just a folder within. Well technically I tried both, after a folder didn’t work I tried just giving the whole partition to www-data. No luck. I changed the directory in every .conf file. Apache, PHP, Nextcloud etc. to no avail. At one point in doing so, I lost the browser installation interface to a 403 forbidden error. Even though ports 80 and 443 where set the same as previous attempts that worked.
So, if someone who’s well versed could maybe explain it like I’m 5, because I’m missing something, and it’s most likely something simple. I hope. I can include links to the two install instructions at the bottom that I followed if it helps at all. Any help is appreciated.
LAMP Stack Instructions: