• Resolved riccardoadmin

    (@riccardoadmin)


    Hi everyone,
    sorry for annoying you but I’m trying to connect a cache plugin without any result.
    I have openlitespeed, i changed the directory as told in the tutorial but redis and memcached are disabled ??
    How i can connect them ?
    If is possible I prefear redis
    Thanks

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    If you mean you want to connect Object cache as Redis or Memcached, please check this wiki

    you didn’t say what is your server OS and PHP version , but just an example for CentOS 7, run command

    yum install lsphp73-redis 
    pkill lsphp

    this ought do it , assume you use php73, then you should install Redis daemon

    Best regards,

    Thread Starter riccardoadmin

    (@riccardoadmin)

    Hi my server is openlitespeed,
    installed on a VPS running the last ubuntu server lts version i think is 16 or 18.
    i followed this tutorial on the official website for changing the directory but is still not working https://docs.litespeedtech.com/cloud/wordpress/

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please do following :

    1. screenshot me where you say “redis and memcached are disabled”

    2. create a phpinfo page , with code

    <?php
    phpinfo();

    access it , it will tell you what PHP version you are using.

    3. assuming you see php 7.3 from step 2 , then do

    apt install lsphp73-redis
    pkill lsphp
    apt install redis
    systemctl stop redis
    systemctl enable redis
    systemctl start redis

    4. after step3 , now run

    netstat -lnp | grep redis

    and

    ps -aux | grep redis

    and post the result of above 2 commands.

    Best regards,

    Thread Starter riccardoadmin

    (@riccardoadmin)

    Screenshot => https://ibb.co/k3N0C87

    Version => PHP Version 7.3.14-1+bionic

    I had problems with enable and start redis so i copied everything on pastebin https://pastebin.com/cUbC7uue

    Result of step 4
    sudo netstat -lnp | grep redis
    tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 16601/redis-server
    tcp6 0 0 ::1:6379 :::* LISTEN 16601/redis-server
    ps -aux | grep redis
    redis 16601 0.1 0.6 50016 3740 ? Ssl 18:47 0:00 /usr/bin/redis-server 127.0.0.1:6379
    riccard+ 16622 0.0 0.1 13208 1012 pts/0 S+ 18:47 0:00 grep –color=auto redis

    Thanks very much !

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    What’s status now ? were you able to connect redis ?

    Best regards,

    Thread Starter riccardoadmin

    (@riccardoadmin)

    Hi,
    Redis Extension: Enabled
    Connection Test: Failed Learn More

    to be honest I’m not sure the extension is enabled but the connection test failed

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please screenshot me where you say “redis and memcached are disabled”

    Best regards,

    Thread Starter riccardoadmin

    (@riccardoadmin)

    Hi,
    the screen is here https://ibb.co/F0dfyb4
    thanks!

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please run command

    /var/run/redis/redis-server.sock

    and post result.

    Best regards,

    Thread Starter riccardoadmin

    (@riccardoadmin)

    Last login: Tue Mar 17 18:45:24 2020 from *********
    riccardo_io2@instance-1:~$ /var/run/redis/redis-server.sock
    -bash: /var/run/redis/redis-server.sock: No such file or directory
    riccardo_io2@instance-1:~$ sudo /var/run/redis/redis-server.sock
    sudo: /var/run/redis/redis-server.sock: command not found
    riccardo_io2@instance-1:~$

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Change that /var/run/redis/redis-server.sock to 127.0.0.1

    and save, then you should be good.

    Best regards,

    Thread Starter riccardoadmin

    (@riccardoadmin)

    Sorry what does it mean change to localhost?
    I need to tipe something on the terminal ?
    Thanks

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    no , just change the one you see in your screenshot , to 127.0.0.1 or localhost

    View post on imgur.com

    as screenshot.

    Best regards,

    • This reply was modified 4 years, 12 months ago by qtwrk.
    Thread Starter riccardoadmin

    (@riccardoadmin)

    Great test passed ! Thanks!
    Now the server is fully working right ?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes, once you see that shows “passed” , then it means redis is connected and working now.

    Best regards,

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Connect Cache Engine’ is closed to new replies.