bdelamatre
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Super Cache] Permissions of wp-config-cache.phpFor now, you need to either revert to 1.6.0 or set PHP config/environmental variables so that https://php.net/manual/de/function.sys-get-temp-dir.php returns a path that is writable by your PHP user.
Forum: Plugins
In reply to: [WP Super Cache] Bad permissions?Why was this marked as resolved?
Even if it can be worked around by re-configuring your host it seems unnecessary. This change breaks the plugin for any user that can’t write to the default /tmp directory and it manifests itself as unrelated errors in the system.
Forum: Plugins
In reply to: [WP Super Cache] Permissions of wp-config-cache.phpThe error message is misleading.
A function was added in a recent release that checks if a file can be created in the /tmp directory and if it can’t it assumes that no file (e.g. wp-config-cache.php) also can’t be modified. On a host with restrictive permissions (i.e. shared hosting) access to /tmp is probably blocked and so this function will always return false, giving the impression that no file is writable by super cache. I would definitely consider this a bug in Super Cache as it is unnecessarily breaking the plugin on many hosts.
Ditto.
I am using PHP-FPM with a dedicated user for the pool. After reading, it sounds like I might be able to workaround this issue by setting the TMPDIR environmental variable in my pool config, but I don’t feel like this should be necessary or at a minimum the error WPSC error message is misleading.
Is it really necessary to block modifying of any files and consequently break the plugin because a temporary file can’t be created at /tmp ?
- This reply was modified 6 years, 9 months ago by bdelamatre.