SuiteCRM and Redis Cache configuration

Hi Guys,

first of all, thanks a lot for that awesome Software.
I have a problem here with my installation. My server uses Redis Cache.
I was able to install SuiteCRM without problems. But when Redis is active on my server, I can’t open the default Login-Page (Error 500). So I figured it out, it’s actually a problem with Redis.
Going into the SSH Terminal, stopping the Redis service, Whooo… Everything works as expected.
I actually don’t know, my Redis on the Server is password protected. Doing a lot of Google search, I can’t find any tutorial to configure Redis on SuiteCRM.
Maybe one of you guys can give me a hint?

Thanks a lot already upfront,

Dean

I too just discovered this error when installing Redis. What’s up with this?

As DeanB mentioned it is issue of Radis. Does it activates firewall on the server?

You need to check your PHP, web server and database services.

I think it’s because we secure Redis with a password, and there’s no place to set the password in SuiteCRM.

Maybe you can try this out:

SuiteCRM doesn’t have a specific option in the user interface to set the Redis password, but you can configure it manually in the config.php file.

$sugar_config['cache']['backend'] = 'Redis';
$sugar_config['cache']['backend_options'] = array(
    'host' => '127.0.0.1', 
    'port' => 6379,        
    'persistent' => true,  
    'password' => 'your_redis_password', 
);

You can clear the cache from the SuiteCRM interface.

Admin → Rapair->Repair & Rebuild

Restart Redis

sudo systemctl restart redis

Check radis and suitecrm log files.

Make sure that the php-redis extension is installed and working on your server.

php -m | grep redis

Thanks for the attempt.

That didn’t work for me on v8.8.0.

I have redis proper configured, can connect an auth at the CLI.

Also, aren’t we suppose to put custom configurations somewhere where the system and upgrades won’t overwrite?

Is there any way to disable Redis in SuiteCRM? I wasn’t using it before, I need Redis for Magento.

It would be nice it the dev team added the Auth function so this all could work properly.

For anyone that can’t get this working you can disable Redis in SuiteCRM by doing the following:

To disable Redis in SuiteCRM 8, you can try the following steps:

  1. Open the config_override.php file in your SuiteCRM root directory.
  2. Add or modify the following configuration:

php

$sugar_config['external_cache_disabled'] = true;
$sugar_config['external_cache_disabled_redis'] = true;
  1. Save the file and clear the SuiteCRM cache:
  • Delete all files in the /public/legacy/cache/ directory
  • Run a Quick Repair and Rebuild from the admin panel

Awesome? Did it work for you?

I ended up spending a few $$ on AI to look at it and ended up fixing Redis completely.

Here’s my post in dev

Enjoy