-
MODX Staff
- 10,725 Posts
Just core/cache/ and everything below it has to be writable by the PHP process unless you are using memcached or another caching implementation which doesn’t use the filesystem.
OK, all folders are set to 775.
What about the files in these folders? Do they all need 664?
Many of these files have 644 in our settings. Could this be the problem?
-
MODX Staff
- 10,725 Posts
Without knowing how your server is configured in detail, I don’t know which user is even running the PHP process, so any advice at this point is a bit blind. When I run on a typical mod_php configuration with Apache, the PHP process runs as the Apache user, and so long as the core/cache/ directory is writable by the user Apache is running as, the PHP process will create and own the files within that directory itself. In that case, it’s fine that they are not group writable unless you need to manage those files with a different user account (e.g. your FTP user account). But that would require changing ownership (or group ownership).
If you are running on a system where PHP runs as your FTP user account (typical fastcgi/suexec configurations), you do not need to mess with permissions at all.