Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
CSSlife Posted February 27, 2018 Posted February 27, 2018 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??
CSSlife Posted February 27, 2018 Author Posted February 27, 2018 9 minutes ago, Nathan Explosion said: 127.0.0.1
Nathan Explosion Posted February 27, 2018 Posted February 27, 2018 127.0.0.1:11211 then. If that fails still then I'd next ask whether you've confirmed that Memcached is configured and started up before trying to implement it into IPS.
DSystem Posted February 27, 2018 Posted February 27, 2018 I use VestaCP and it worked like this: 0.0.0.0:11211
ASTRAPI Posted February 27, 2018 Posted February 27, 2018 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....
CSSlife Posted February 27, 2018 Author Posted February 27, 2018 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.
DSystem Posted February 27, 2018 Posted February 27, 2018 pota 2 minutes ago, ASTRAPI said: 0.0.0.0 abrirá Memcached para o mundo Port 11211 is not open in the firewall
ASTRAPI Posted February 27, 2018 Posted February 27, 2018 Good then But again 127.0.0.1 is the recommended way to do it
DSystem Posted February 27, 2018 Posted February 27, 2018 @ASTRAPI Thanks for the observation. I always thought I was wrong but I hadn't researched the subject I just got nano /etc/sysconfig/memcached PORT="11211" USER="memcached" MAXCONN="2048" CACHESIZE="4096" OPTIONS="-l 127.0.0.1"
ASTRAPI Posted February 27, 2018 Posted February 27, 2018 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.