How do I ensure that auto-generated css cache files (related to the Less module) are being generated with the permissions necessary for the server to access.
Currently, whenever I clear all caches (with
drush cc all), I lose all of my site's css styles and get the following error:
LESS could not create a directory in sites/default/files/less/52741f7e343834.56376384/sites/all/themes/my_custom_theme/css
When I go to look at the permissions (
ls -l) for the files in
sites/default/files/less, the directory
52741f7e343834.56376384 (which I assume is the new cache file the server is trying to create the other stuff in) it has the wrong ownership
<correct-user>:<correct-user>, rather than
<correct-user>:apache (it's centos, so that's the apache server group). All the other cache directories have the correct owner permissions.
So how do I ensure that the system is creating these cache files properly such that I don't have to set the file ownership every time I clear the cache to get my styles back?
This is a new problem for my site and I suspect it is because I updated the Less module for Drupal 6 and added the lessphp library to my site (though perhaps I am mistaken).