Опубликовано Alain Raap

Howard I tried to configure this in the config.php, and in the Caching configuration of Redis, but the redis connection expects a server (IP address/hostname) and a port:

Check this code in cache/stores/redis/lib.php

protected function new_redis($server, $prefix = '', $password = '') {
$redis = new Redis();
$port = null;
if (strpos($server, ':')) {
$serverconf = explode(':', $server);
$server = $serverconf[0];
$port = $serverconf[1];
}
if ($redis->connect($server, $port)) {
if (!empty($password)) {
$redis->auth($password);
}
$redis->setOption(Redis::OPT_SERIALIZER, $this->serializer);
if (!empty($prefix)) {
$redis->setOption(Redis::OPT_PREFIX, $prefix);
}
// Database setting option...
$this->isready = $this->ping($redis);
} else {
$this->isready = false;
}
return $redis;
}

Moodle in English -> Hardware and performance -> Redis caching and unix socket configuration

от Alain Raap -

We're busy tuning Redis and have configured a Unix socket instead of a TCP socket. This new configuration runs fine on the server. Only it seems it's not possible to configure a Redis caching store with a Unix socket in the Moodle Admin Caching configuration and in the Moodle config.php. Isn't this possible? I'm testing Moodle 3.5.5 in a Redhat 7 environment.

Stan, I'm not familiar with Moodle v3.6.2 or v3.7, what you can try is to manually start a backup or the automated backup php script in your moodle admin/cli folder like
/usr/bin/php admin/cli/automated_backups.php
This gives you some more information what happens when the script is running. We also have had problems with this process, but that was due to our environment (Redhat Linux) and because of performance issues. Our automated backup is running on our database server now and that works well. You can find in this forum how I configured this on Redhat.
@Tyson, you can also try the command ldapsearch to test the connection with the LDAP server on your Moodle webserver:

ldapsearch -H "ldap://your-ldap-server-hostname/" -b "OU=UID,DC=your-organization,DC=country" -D "CN=..,OU=..,OU=..,OU=..,DC=..,DC=your-organization,DC=country" -w[bind user password] -s sub "cn="your-name-or-userid"