# Error establishing a redis connection

**URL:** <https://forum.virtualmin.com/t/error-establishing-a-redis-connection/131745>\
**Category:** Webmin\
**Created:** [January 25, 2025, 7:10pm UTC](https://forum.virtualmin.com/t/error-establishing-a-redis-connection/131745 "2025-01-25T19:10:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![charisvaltzis](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@charisvaltzis](https://forum.virtualmin.com/u/charisvaltzis)\
**Post date:** [January 25, 2025, 7:10pm UTC](https://forum.virtualmin.com/t/error-establishing-a-redis-connection/131745/1 "2025-01-25T19:10:02Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | AlmaLinux 8.10 |
| Webmin version | 2.202 |

Hi everyone,

I’ve been experiencing an intermittent issue with Redis on my AlmaLinux 8.10 server managed via Webmin/Virtualmin. I’m using the WP Redis Object Cache plugin for WordPress, and every couple of months, some or all of my websites start throwing the error:  
`Error establishing a Redis connection. Delete the object-cache.php file.`

After deleting the `object-cache.php` file, the issue resolves temporarily, but it keeps recurring. Has anyone else faced this problem?

I can’t remember the exact steps of installing redis.

I’m wondering if this is a server configuration issue, a memory problem, or something else entirely. Should I adjust Redis or PHP settings? Or is this a known issue with the plugin?

Any insights or suggestions would be greatly appreciated!  
I am also giving my current redis ( disabled from my websited right now ) informations  
used\_memory:853072  
used\_memory\_human:833.08K  
used\_memory\_rss:492191744  
used\_memory\_rss\_human:469.39M  
used\_memory\_peak:974202960  
used\_memory\_peak\_human:929.07M  
used\_memory\_peak\_perc:0.09%  
used\_memory\_overhead:840694  
used\_memory\_startup:791000  
used\_memory\_dataset:12378  
used\_memory\_dataset\_perc:19.94%  
allocator\_allocated:1355280  
allocator\_active:12640256  
allocator\_resident:534679552  
total\_system\_memory:8245850112  
total\_system\_memory\_human:7.68G  
used\_memory\_lua:37888  
used\_memory\_lua\_human:37.00K  
used\_memory\_scripts:0  
used\_memory\_scripts\_human:0B  
number\_of\_cached\_scripts:0  
maxmemory:0  
maxmemory\_human:0B  
maxmemory\_policy:noeviction  
allocator\_frag\_ratio:9.33  
allocator\_frag\_bytes:11284976  
allocator\_rss\_ratio:42.30  
allocator\_rss\_bytes:522039296  
rss\_overhead\_ratio:0.92  
rss\_overhead\_bytes:-42487808  
mem\_fragmentation\_ratio:606.10  
mem\_fragmentation\_bytes:491379680  
mem\_not\_counted\_for\_evict:0  
mem\_replication\_backlog:0  
mem\_clients\_slaves:0  
mem\_clients\_normal:49694  
mem\_aof\_buffer:0  
mem\_allocator:jemalloc-5.1.0  
active\_defrag\_running:0  
lazyfree\_pending\_objects:0

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [January 26, 2025, 2:03am UTC](https://forum.virtualmin.com/t/error-establishing-a-redis-connection/131745/2 "2025-01-26T02:03:53Z")

</div>

We don’t maintain either Redis or the plugin you’re using (and I don’t use either), so we may not be the best people to ask.

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [January 26, 2025, 9:05am UTC](https://forum.virtualmin.com/t/error-establishing-a-redis-connection/131745/3 "2025-01-26T09:05:28Z")

</div>

> [@charisvaltzis](#):
>
> Redis or PHP settings

I do not think this is a Redis issue (I have Redis running quite happily on a production VS)

I also doubt it is a PHP specific problem - as long as you are using an up-to-date version.

I **do** think this is WP - and probably the plugin - so perhaps direct the problem at them - good luck.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [March 27, 2025, 9:06am UTC](https://forum.virtualmin.com/t/error-establishing-a-redis-connection/131745/4 "2025-03-27T09:06:00Z")

</div>

Closed on March 27, 2025, 9:06am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
