Drupal automatically changes the directory permissions of
sites/default to 555 (i.e. read-only), which means that if I'm editing
sites/default/settings.php, even if I've set the permissions for that file to read/write (which it again reverts on a page load), PhpStorm still gives me a permission denied error on the swap file it's attempting to create in the same directory.
- Is there a more flexible way to update settings (especially on a dev machine) other than manually setting the file and directory permissions every time you need to edit those files?
- Do I just have to do it via sudo?
- Can I disable permissions checking for a specific environment?