Title: Error establish connection
Last modified: November 28, 2025

---

# Error establish connection

 *  Resolved [giannisgx89](https://wordpress.org/support/users/giannisgx89/)
 * (@giannisgx89)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/error-establish-connection/)
 * Hello! I recently installed and enabled Redis Object Cache on my website, and
   a couple of days later I suddenly couldn’t log in to my admin panel.
 * I was getting this message:
   **“Error establishing connection. To disable Redis,
   delete the object-cache.php file in the /wp-content/ directory.”**
 * Once I deleted the `object-cache.php` file, I was able to log in normally again,
   and the plugin was automatically disabled.
 * Do you know what might have caused this issue, and how I can prevent it from 
   happening in the future?
 * Just to mention: I have changed the default login URL from **/wp-admin** to a
   custom one using **Solid Security Pro**.
 * Aside from this problem, the plugin really boosted my website’s performance!
 * Edit: After I tried to re-enable the plugin I now get this new error message:
 * Error establishing a Redis connection
 * `MISCONF Redis is configured to save RDB snapshots, but it is currently not able
   to persist on disk. Commands that may modify the data set are disabled, because
   this instance is configured to report errors during writes if RDB snapshotting
   fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details
   about the RDB error.`
 * WordPress is unable to establish a connection to Redis. This means that the connection
   information in your `wp-config.php` file are incorrect, or that the Redis server
   is not reachable.
    - Is the correct Redis host and port set?
    - Is the Redis server running?
 * If you need help, please read the [installation instructions](https://github.com/rhubarbgroup/redis-cache/blob/develop/INSTALL.md).
 * To disable Redis, delete the `object-cache.php` file in the `/wp-content/` directory.
 * Best regards,
   Ioannis Chionidis
    -  This topic was modified 4 months, 2 weeks ago by [giannisgx89](https://wordpress.org/support/users/giannisgx89/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/error-establish-connection/#post-18735880)
 * I recommend disabling all persistence in Redis Server, it’s not needed.
 * Use a tool like supervisord to ensure that Redis Server is always up and running.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-establish-connection%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * Last activity: [4 months, 2 weeks ago](https://wordpress.org/support/topic/error-establish-connection/#post-18735880)
 * Status: resolved