Hello,
I have a NextCloudPi image running on a Rapsberry Pi3. I am trying to host my own test webpage. I made a folder in /var/www/testsite and a Virtualhost - testsite.conf in /etc/apache2… I was issuing these commands from an ssh shell as ROOT. I figured out the files and folders need permissions same as the group: www-data because the html file was not working in the browser.
I ended up doing a chown -R and giving the entire /var/www folder and sub-folders 750 permission. Now I can’t log in to NextCloudPi web interface, I get the error message: “Cannot write into “config” directory! This can usually be fixed by giving the webserver write access to the config directory”
Now I wish I could revert all the file/folder permissions in /var/www to what they were. What would be the best way of doing this aside from re-installing NextCloudPi? Could I cop the /var/www folder from another installation or something? Maybe only a few files and folders will need to have their permissions fixed? If so does anyone know which ones?
Any help gratefully appreciated,
Flex