Title: Plugin not working (cache folder not created)
Last modified: August 19, 2018

---

# Plugin not working (cache folder not created)

 *  [sastaran](https://wordpress.org/support/users/sastaran/)
 * (@sastaran)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-not-working-cache-folder-not-created/)
 * Hello,
 * I’m trying to get this awesome plugin to work but unfortunately I’ve hit a bump
   in the road. After installing and configuring the NginX options, I’m not able
   to have the image cache folder created. My server installation is on a NGINX 
   + Apache2 Hybrid.
 * Here is my debug info
 * ✔ PHP GD library is installed.
 * ✖ Image cache directory has not been created.
 * But this is probably because the cache has not been accessed yet.
    After accessing
   your website from a mobile device the directory should be automatically created.
 * /home/runcloud/webapps/wpwp/wp-content/cache => drwxr-xr-x
 * ✔ Installation .htaccess file is setup OK.
 * /home/runcloud/webapps/wpwp/.htaccess => -rw-r–r–
 * ❖ Adaptive images settings dump:
 * array(14) {
    [“resolutions”]=> array(3) { [0]=> int(1024) [1]=> int(640) [2]=
   > int(480) } [“cache-directory”]=> string(21) “cache/adaptive-images” [“watched-
   directories”]=> array(2) { [0]=> string(18) “wp-content/uploads” [1]=> string(
   17) “wp-content/themes” } [“jpeg-quality”]=> int(75) [“sharpen-images”]=> bool(
   true) [“watch-cache”]=> bool(true) [“browser-cache”]=> float(365) [“landscape”]
   => bool(false) [“hidpi”]=> bool(false) [“cdn-support”]=> bool(false) [“version”]
   => string(6) “0.6.64” [“sanitized”]=> bool(true)
 * I’ve already tried accessing via multiple mobiles but no look. I’m running W3
   Total Cache and the experimental option doesn’t work either.
 * Is there anything that can be done to remedy this?
 * Thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [sastaran](https://wordpress.org/support/users/sastaran/)
 * (@sastaran)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-not-working-cache-folder-not-created/#post-10604848)
 * So upon testing my nginx config file I meet the following error:
    nginx: [warn]
   the “ssl” directive is deprecated, use the “listen … ssl” directive instead in/
   etc/nginx-rc/conf.d/wpwp.conf:28 nginx: [emerg] duplicate location “/” in /etc/
   nginx-rc/extra.d/wpwp.location.main.autoresize.conf:1 nginx: configuration file/
   etc/nginx-rc/nginx.conf test failed
 * To add, I was trying to append the autoresize.conf with the nginx code to the
   main nginx.conf as my managed hosting recommends this. Seems like there is an
   error in adding the nginx code which might be why it’s not working.
 *  Plugin Author [Takis Bouyouris](https://wordpress.org/support/users/nevma/)
 * (@nevma)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-not-working-cache-folder-not-created/#post-10604902)
 * Hello, my friend,
 * One thing I need to make sure first is whether Apache is your main application
   server and Nginx your proxy/caching server. This is quite a common setup nowadays.
   Is that it?
 * If that is your setup, then there is nothing you need to configure in Nginx. 
   You only need manual Nginx configuration if Nginx is your main application server.
 * Also, could you possibly share your website url with us, so that we can debug
   your images?
 * Cheers,
    Takis
 *  Thread Starter [sastaran](https://wordpress.org/support/users/sastaran/)
 * (@sastaran)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-not-working-cache-folder-not-created/#post-10607090)
 * Hello Takis,
 * Thanks for your reply. Between last night and now, the image cache folder was
   created, but it is empty. I asked my managed host and this was their reply:
 * “Different from most setup, this stack does not fully proxying Apache2. It is
   called hybrid because NGINX and Apache2 does their own job.
    NGINX is good at
   serving static files such as css,js,image and icon. And it is better at serving
   static files than Apache2. By using this stack, your static files will be served
   by NGINX and dynamic files will be served by Apache2 + FPM.”
 * So it seems like it’s a bit of both. This is on Runcloud by the way.
 * I managed to edit the the NginX conf file by adding only the following line as
   suggested by my host
 * rewrite .(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-images/adaptive-images-
   script.php;
 * However this breaks all images on my wordpress site. Neither having the experimental
   option checked with the above line or not works, so I removed the code and images
   work fine again.
 * Appending ?debug=true simply loads original file in browser. I can send the debug
   and site URL in private if it’s possible?
 * Also I read in another thread that images behind CSS don’t work. Almost all my
   images are behind CSS. Also I’m using Cloudflare. Would this be a dealbreaker
   for the plugin?
 * Thanks for your advice
    -  This reply was modified 7 years, 9 months ago by [sastaran](https://wordpress.org/support/users/sastaran/).
 *  Plugin Author [Takis Bouyouris](https://wordpress.org/support/users/nevma/)
 * (@nevma)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-not-working-cache-folder-not-created/#post-10610154)
 * Hello, my friend,
 * Thank you for the information you have shared with me. I am really interested
   in debugging all possible setups and covering as many cases as possible.
 * What your host mentions is basically correct. However, it is not yet clear to
   me who serves your images in the first place. Is it Apache or Nginx? Does Nginx
   make HTTP requests back to Apache in order to obtain the images (let’s call this
   case A) and serve them to your users or does it obtain them from the filesystem
   and serve them directly (case B)?
 * If in case A, then Nginx is being used as a caching server/reverse proxy for 
   your images and you do not need to add the rewrite rule to its configuration 
   file at all.
 * If in case B, then Nginx is accessing your images directly and you do need to
   add the rewrite rule to its configuration file. But you have to put the rewrite
   rule in the correct place and it needs to have the correct path to the `adaptive-
   images-script.php` in it.
 * Also, sorry for mentioning that again, but it would really help if you could 
   share your website url with us so that we can do some remote debugging. You can
   do it in private with an email to info [at] nevma [dot] gr if you would like.
 * Cheers,
    Takis

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Plugin not working (cache folder not created)’ is closed to new replies.

 * ![](https://ps.w.org/adaptive-images/assets/icon-256x256.png?rev=1138642)
 * [Adaptive Images for WordPress](https://wordpress.org/plugins/adaptive-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adaptive-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adaptive-images/)
 * [Active Topics](https://wordpress.org/support/plugin/adaptive-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adaptive-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adaptive-images/reviews/)

## Tags

 * [nginx](https://wordpress.org/support/topic-tag/nginx/)

 * 4 replies
 * 2 participants
 * Last reply from: [Takis Bouyouris](https://wordpress.org/support/users/nevma/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-not-working-cache-folder-not-created/#post-10610154)
 * Status: not resolved