Jump to content

Issues with enabling caching.


Recommended Posts

Posted

So I want to enable caching on my site, how do I go about that?

I've installed memcache onto the server and invision now lets me select it as an option for caching but I don't know what server IP to put in. I've tried the VPS IP and other combinations even localhost and it continues to say 'The servers provided are not valid" what can I do??

5a95405d103d8_ScreenShot2018-02-27at11_23_39.thumb.png.5dc5ecaf8ade08f75f5aa9483953b380.png

Posted

0.0.0.0  will open Memcached to the world :(

Not recommend it to use in any case !

You should use 127.0.0.1 or if you use a remote server to set it to that ip....

Posted

Thanks @Nathan Explosion and @DSystem

I FINALLY got it working, turns out it wasn't just a case of installing the memcache module in WHM, I had to use SSH to config the memcached file and set the OPTIONS value to localhost and bumped up the CACHESIZE too. I'm guessing memcache was set up it just wasn't running on localhost or something? But after I did that (after hours of troubleshooting) things finally work.

Thanks again for your help guys! You were right all along Nathan, I just hadn't set it up properly.

 

Posted

 

@ASTRAPI 

Thanks for the observation. I always thought I was wrong but I hadn't researched the subject

I just got :thumbsup:

nano /etc/sysconfig/memcached

PORT="11211"

USER="memcached"

MAXCONN="2048"

CACHESIZE="4096"

OPTIONS="-l 127.0.0.1"

Posted

Another reason to use 127.0.0.1 and block the 11211 port at your firewall as Memcached can be abused using the UDP protocol.....

You may also want to use Redis as the latest re work from IPB was great and now it performs a bit better than Memcached :)

More info about the vulnerability can be found here:

https://blog.cloudflare.com/memcrashed-major-amplification-attacks-from-port-11211/

 

Or you can go ahead and upgrade to the latest version that already fix that issue:

Memcached 1.5.6

Fixes

  • disable UDP port by default
  • systemd instancing support & rpm build improvements
  • fix gcc warnings in beta GCC
  • fix build with clang
  • fix for dtrace compilation on freebsd

 

All my clients already use that version :)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...