Folders and permissions

hdrcweb

Member
Hi
Last night my hosting company upgraded the server OS, today I get errors on the admin page:
The following errors occurred while verifying that your server still meets the minimum requirements:
  • All directories under /home/hdrcgbweb2/public_html/data must be writable. Please change the permissions on these directories to be world writable (chmod 0777).
  • All directories under /home/hdrcgbweb2/public_html/internal_data must be writable. Please change the permissions on these directories to be world writable (chmod 0777).
Looking at my test system on a different server, none of the folders mentioned above are set to 777, they are all 755 (apart from avatars.
When I tried to create a new node I get lots of errors saying it can't write to various files, when I change the folders to 777 it's ok but I don't have this issue on my test system.
I'm nervous about changing them all to 777, and as my test system is fine I think this must be something else going on here, any ideas?
Upgraded to AlmaLinux 8 from CentOS 7.
Thanks
 
Last edited:
Are they 755 on the live system too? If so, the files probably have different ownership. Your web server needs to be able to read from the data/ directory, and PHP needs to be able to read from and write to both the data/ and internal_data/ directories. You can achieve that in whatever manner you prefer, and if anything restricting permissions to the extent possible is best.
 
Back
Top Bottom