tillkruss / Nginx-FastCGI-Cache

A WordPress plugin that purges Nginx cache zones.
48 stars 25 forks source link

Filesystem API could not be initialized. #7

Closed oempire closed 8 months ago

oempire commented 7 years ago

Getting this error Filesystem API could not be initialized.

however i can upload plugins, update core, theme etc without having to supply login credentials so i dont think thats the cause.

I have the path specified as /var/cache/nginx and both have access by www-data user

tillkruss commented 7 years ago

Could you try the master of this repo, if that works?

See https://github.com/tillkruss/Nginx-FastCGI-Cache/pull/6

siparker commented 5 years ago

If, Like me, you are hosting this somewhere that uses a different user for PHP than the Nginx user (www-data probably?) then you will find you get a filesystem API could not be initialised error not because of anything to do with the filesystem api but because the current php user cant read and write to the nginx cache folder as its owned by a different user.

I wrote up the solution here https://www.siparker.net/web/nginx-proxy-caching-with-multiple-php-pools-and-wordpress/