• Hi,

    I’m trying to make your plugin work on a Vultr server running on Cloudways managed services.

    The plugin is installed and .htaccess file has been successfully modified but I can’t seem to get things to work.

    I just created a blank test WordPress install which is only running this plugin so it’s easier to troubleshoot. I also deactivated varnish and all other server sided caching just in case.

    Any help would be greatly appreciated.

    Plugins’ debug info below.

    Thanks and all the best!

    Theo

    Web Server
    Apache/2.4.10 (Debian)
    Document Root
    /home/124886.cloudwaysapps.com/pfqzemnfhq/public_html/
    PHP
    7.2.5-1+0~20180505050007.21+jessie~1.gbpca2fa6
    PHP Time Limit
    300
    PHP Memory Limit
    256M
    PHP Post Max Size
    128M
    PHP Upload Max Size
    128M
    PHP Max Input Vars
    2500
    PHP Display Errors
    No
    PHP Error Log
    MySQL
    5.6.39-83.1
    MySQL Ext/mysqli
    Yes
    MySQL Table Prefix
    wp_
    MySQL DB Charset
    utf8
    WP
    4.9.6
    WP Multisite
    No
    WP Debug Mode
    No
    WP Site url
    https://wordpress-124886-518445.cloudwaysapps.com
    WP WP Home url
    https://wordpress-124886-518445.cloudwaysapps.com
    WP Permalinks
    WP home path
    /home/124886.cloudwaysapps.com/pfqzemnfhq/public_html/
    WP content dir
    /home/124886.cloudwaysapps.com/pfqzemnfhq/public_html/wp-content
    WP plugin dir
    /home/124886.cloudwaysapps.com/pfqzemnfhq/public_html/wp-content/plugins
    WP content url
    https://wordpress-124886-518445.cloudwaysapps.com/wp-content
    WP plugin url
    https://wordpress-124886-518445.cloudwaysapps.com/wp-content/plugins
    WP Locale
    en_GB
    WP Memory Limit
    64M
    WP Max Upload Size
    128mb
    WP Active plugins
    Adaptive Images for WordPress v.0.6.64 by Nevma
    WP MU plugins

    Debug info
    ? PHP GD library is installed.
    ? Image cache directory has not been created.
    It seems that the directory is not writeable. This is probably a filesystem permissions issue. 
    Consider adding manually the image cache directory: "/wp-content/cache/adaptive-images".
    
    /home/124886.cloudwaysapps.com/pfqzemnfhq/public_html/wp-content/cache =>
    ? Installation .htaccess file is setup OK.
    /home/124886.cloudwaysapps.com/pfqzemnfhq/public_html/.htaccess => -rw-r--r--
    ? Adaptive images settings dump:
    array(14) {
      ["resolutions"]=>
      array(5) {
        [0]=>
        int(3840)
        [1]=>
        int(1929)
        [2]=>
        int(1080)
        [3]=>
        int(640)
        [4]=>
        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(180)
      ["landscape"]=>
      bool(false)
      ["hidpi"]=>
      bool(false)
      ["cdn-support"]=>
      bool(false)
      ["version"]=>
      string(6) "0.6.64"
      ["sanitized"]=>
      bool(true)
      ["wp-content-dir"]=>
      string(64) "/home/124886.cloudwaysapps.com/pfqzemnfhq/public_html/wp-content"
      ["wp-content-url"]=>
      string(59) "https://wordpress-124886-518445.cloudwaysapps.com/wp-content"
    }
    
    • This topic was modified 6 years, 6 months ago by Theo Ribeiro.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takis Bouyouris

    (@nevma)

    Hello, Theo,

    Thank you for going to all this trouble in order to debug the issue!

    I did check you demo website and it seems like the image requests actually never reach the code of our plugin, so the images are served non-resized. Now, you mentioned that you are not using Varnish at the moment, but, although your main server is Apache, your content is served via NginX.

    For instance look at this image debugging url https://wordpress-124886-518445.cloudwaysapps.com/wp-content/uploads/2018/05/aperture-vintage-339839-unsplash.jpg?debug=true which is supposed to produce some text debugging information, but it doesn’t.

    Could you please enlighten me here a little bit as to what your exact setup is?

    Perhaps you are using NginX as a caching server instead of Varnish? In any case, using a caching server is quite the same as using a CDN (at least as far as our plugin is technically concerned) so, if this is your case, you could try enabling the CDN support option in the plugin settings page.

    Unfortunately this option in still a bit experimental. It doesn’t break anything but it isn’t able to resize all the images on time and some of them are served non-resized.

    To sum it all up, you either need use our plugin with a caching server or CDN and put it in CDN support mode with the drawback I mentioned above, or you can choose to use Apache directly!

    Let me know if this makes sense to you and if you need any more help.

    Cheers,
    Takis

    Thread Starter Theo Ribeiro

    (@theorib)

    Hi @nevma,

    So I was checking and indeed, my server is set up in that it uses NginX to serve static content faster using a reverse proxy system.

    I did try activating the “CDN support” option but it still doesn’t work.

    I guess that would be a no go for your plugin then unless my images are hosted on another server’s CDN?

    Thanks for checking!

    Best,

    Theo

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, again,

    Hmm, it seems that your NginX does not convey image requests to Apache as a whole HTTP request. It probably strips url parameters from them, as well. I see that urls like https://wordpress-124886-518445.cloudwaysapps.com/wp-content/uploads/2018/05/aperture-vintage-339839-unsplash.jpg?debug=true still produce no debugging output.

    Sooo, I believe that, if NginX (or any other caching server or CDN you may use) actually makes full HTTP requests for images back to your original Apache server, then the Adaptive Images plugin could work (at least as good as it can in this mode which is, as I mentioned earlier still experimental). If that is not possible, then I’m afraid you are going to have to make a choice between a) use the Adaptive Images plugin and b) use a caching server or CDN.

    (About the dilemma above, I could go as fas as to advise that, if you are not talking about a high traffic website, then a caching server or CDN might not provide you with much value. But this is a decision you will have to make for yourself!)

    Cheers,
    Takis

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trying to make it work on a Cloudways Vultr Server’ is closed to new replies.