I just finished installing my Nextcloud on an amazon Ec2 instance using the occ terminal command method stated in the documentation.
I can login into my application as admin but when I try to open all files, I get an error message of “this operation is forbidden”. I’m not too sure where I could be going wrong? I did a manual installation.
I also get an error message of could not create ReadMe.md file.
The same thing occurs if I install nextcloud via snap.
OS: Ubuntu 20.04 LTS
Nextcloud Version: 22.2.3
PhP version: 7.4 (The latest I can download)
Any help would be appreciated.
Hi brendon.maongera, and welcome to the forum
I could be wrong, but that sounds like a permissions issue. Is it possible that the webserver user doesn’t have access to the Nextcloud “data” folder?
i.e. the folder that contains
<nextcloud user 001>
<nextcloud user 002>
<nextcloud user 999>
That folder and all its contents need to be readable and writable by the webserver user (“www-data”). If they aren’t, the simplest thing to do is:
sudo chown -R www-data:www-data /path/to/data
Hey, I just checked, it does have permission to the path for the Nextcloud Data.
Is it possible that it’s a database permissions issue (as opposed to a file system permissions issue) i.e. the Nextcloud DB user doesn’t have appropriate permissions in Maria?
(FYI I used the GUI wizard - not the
occ method - to complete my installation).