silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
722 stars 822 forks source link

cPanel needs read access to /assets/.htaccess (4-beta2) #7350

Closed ec8or closed 7 years ago

ec8or commented 7 years ago

I'm running SilverStripe 4-beta2 on a cPanel host and every time I flush a page all files under /assets result in 404s.

Have narrowed it down the the .htaccess file in assets being recreated with 700 file permissions which from what I understand doesn't work with most cPanel setups, since the apache usser is different from the user running the php scrips:

https://superuser.com/questions/457793/cpanel-apache-wordpress-user-permissions

Shouldn't be too much sensitive information in that file so could we either set it to 644 by default or maybe check permissions before re-creating and not defaulting back to 700 if they've been changed?

PRs

zanderwar commented 7 years ago

I get this issue too - though I get every issue :')

tractorcow commented 7 years ago

I've adjusted the permission behaviour / defaults, and have written up documentation for deploying to a cpanel type installation where multiple users require read / write access: