easyengine icon indicating copy to clipboard operation
easyengine copied to clipboard

Redis and nginx helper wordpress plugins not installed

Open sensesfail opened this issue 8 years ago • 2 comments

I created a new site with the flags type=wp and --cache, and the plugins for redis and nginx are not installed. If I manually install the plugins, redis plugin shows that it is not connected to the redis server. The nginx helper plugin is also not connecting to nginx after I've manually installed it. I have tried clearing the cache (via the nginx plugin), to no success. I tried both settings (fastcgi & redis modes). I have tested this by enabling maintenance mode on the website, and after clearing my browser cache I am still seeing the website. So it seems that redis cache is indeed running, but I am unable to communicate with it via both plugins due to a configuration error.

How do I find the hostname, port and prefix used by redis on easyengine 4?

sensesfail avatar Oct 26 '18 15:10 sensesfail

I now have redis working by deleting the nginx-helper and redis plugins that I manually installed via wp-admin, and following these steps:

ee shell mysite.com.au

wp plugin install wp-redis

wp plugin activate wp-redis

wp redis enable

vim wp-content/plugins/wp-redis/object-cache.php (search for 127.0.0.1 and replace it with redis)

I still needed to flush the cache, so after this I entered the command

wp cache flush

and now I can see my site is coming up in maintenance mode.

Side note, I use nano not vim, this was my first time using vim. For those that don't know how to use it as well, when you first open the document to edit, press escape and then type in /127.0.0.1 this will search for 127.0.0.1 -- once you've found it, enter and press Insert on your keyboard and then replace the text as needed. Then press insert again and escape. And then type in :w and press enter, this will save the document. Then :q to exit.

sensesfail avatar Oct 26 '18 17:10 sensesfail

@b167er thank you for reporting this issue. --cache is not working properly with beta.6 version. It has been reported and properly fixed, in this issue. With the new fix, it will automatically install and setup the redis as well as nginx-helper plugin with proper configurations such that it works properly. It will be available soon in the next release.

As far as the preference for shell editor goes, there has been an enhancement in the shell-command. So, from the next release, you'll be able to use ee shell <site-name> --user=root and drop into the the shell with root user and be able to install nano or whatever you prefer.

mrrobot47 avatar Oct 29 '18 02:10 mrrobot47