When using
Everything works fine, but my Wordpress plugin needs read/write permissions to the cache so it can read and delete the cache.
I've tried doing
Then I keep getting the following error :
Any ideas what I can try next?
fastcgi_cache_path
command in www/nginx-devel, it auto creates the cache directory using the user/group nginx:wheel.Everything works fine, but my Wordpress plugin needs read/write permissions to the cache so it can read and delete the cache.
I've tried doing
chown -R nginx:www /www/cache/
, chmod 770 /www/cache/
and chmod u+s,g+s /www/cache/
but any new directories or files added to the cache folder reverts back to nginx:wheel and 700 permissions.Then I keep getting the following error :
Code:
PHP Warning: opendir(/www/cache): Failed to open directory: Permission denied in /usr/opt/www/example.com/httpdocs/wp-content/plugins/nginx-helper/admin/class-purger.php on line 1232
Any ideas what I can try next?