Redis Problem on Hosting Linux Server

Hello,

I setup a fresh hostet Linux Server and install Emoncms 9 Master git:
cat /etc/*-release
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS" NAME="Ubuntu" VERSION="14.04.4 LTS, Trusty Tahr" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.04.4 LTS" VERSION_ID="14.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" 12.5.30 ubuntu14.04.build1205150826.19

All is running, but get not Redis to work.

Redis is installed:
ps aux | grep redis
redis 17527 0.0 0.0 41040 1772 ? Ssl 09:46 0:00 /usr/bin/redis-server 127.0.0.1:6379

But I get the error on the website:
settings.php file error

redis enabled but not installed, check setting: redis_enabled

To fix, check that the settings are set in settings.php or try re-creating your settings.php file from default.settings.php template

My settings.php.
//2 #### Redis $redis_enabled = true; $redis_server = array( 'host' => 'localhost', 'port' => 6379, 'auth' => '', 'prefix' => 'emoncms');

Where is the problem?

Thank you!

Redis is not essential for single user installation. Try chaning $redis_enabled = false; Redis should be disabled in standard settings:

https://github.com/emoncms/emoncms/blob/master/default.settings.php#L14

did you copy default.settings.php to settings.php?

If redis is installed and working and yet emonCMS thinks it is not, have you also installed the phpredis module and is that module enabled?

Hi Paul,

yes, I have to install redis for php … on it works.

Thank you!

1 Like