Data Folder Permissions

I recently switched servers. I have created the data folder outside of the root and changed permissions to 770 but I get an internal server error. I change the permissions to 777 and the site shows up with message stating my folder is eadable by other users

Please change the permissions to 0770 so that the directory cannot be listed by other users.

I try putting back to 770 and the internal server error comes back. Any suggestions?

Is the owner of the data folder identical to the webservers‘ user?

1 Like

Thanks. Forgot to add www-data to the folder as owner.

1 Like