Era Host hosting
EraHost – Free Domain, Cheap Hosting!
Client Area
Support 24/7
Menu

How to Repair Horde Database (cphorde) in cPanel

2 min read
26.05.2026

Check If the Horde Database Exists

Before repairing, check if the Horde database is available.

Repair Horde Database cPanel
Horde DB (cphorde) — CHECK/REPAIR; rebuild from scratch if irrecoverable.

For closely related cPanel / mail-stack topics, see cpsrvd — cPanel Service Daemon, Understanding the .cagefs Folder in CloudLinux, MySQL Corrupt Database Files, and phpMyAdmin "Error During Session Start".

List Databases

Run the following command:

mysql -e "SHOW DATABASES LIKE 'horde';"

If horde appears in the output, proceed to Step 2.

If it does not appear, the database is missing and needs to be rebuilt (Step 4).

cPanel Hosting
Full control over your website
  • Convenient
  • Simple
  • Fast
  • Free 7-day trial
cPanel Hosting

Repair the Horde Database

If the database exists but Horde is not working, repair it.

Use mysqlcheck to Repair Horde Tables

mysqlcheck -r horde

If MySQL is running but tables are still corrupted, try:

mysql -e "REPAIR TABLE horde.turba_objects;"

turba_objects is the Horde contacts table, replace it with other tables if needed.

Restart cPanel Services

After repairing, restart the cPanel services:

service cpanel restart

If Horde still does not work, restart MySQL:

systemctl restart mysql

Rebuild the Horde Database (If Repair Fails)

If the database is missing or severely corrupted, reset it.

Reset Horde Database

/scripts/fullhordereset

or manually:

mysql -e "DROP DATABASE horde;"
/usr/local/cpanel/bin/update_horde_config --force

Restart Services

service cpanel restart
systemctl restart mysql

This will recreate the Horde database and its tables.

Verify Horde is Working

  1. Log into cPanel
  2. Go to Webmail > Horde
  3. Check if emails, contacts, and settings are loading

Horde should now work without issues!

Summary of Fixes

Issue Fix
Database connection error Run mysqlcheck -r horde
Emails not loading Restart cpanel and mysql
Horde database missing Rebuild with /scripts/fullhordereset
Severe corruption Drop & recreate Horde: DROP DATABASE horde;

Now Horde Webmail should be fully functional!

Frequently asked questions
Older cPanel versions: MyISAM (CHECK/REPAIR work simply). Newer cPanel (~v110+): InnoDB. For InnoDB corruption: innodb_force_recovery levels, dump+restore, similar to other InnoDB recovery. Check table engine: `SHOW TABLE STATUS FROM cphorde;`.
`/usr/local/cpanel/bin/update_horde_schema --rebuild` rebuilds Horde DB from scratch. WARNING: loses user preferences, sessions, address books stored in cphorde. After: users log into Horde and reconfigure. For small installs OK; for many users, dump cphorde first to attempt data salvage post-rebuild.
Check Apache error log and `/usr/local/cpanel/logs/error_log` for clues. Common: Horde's SQL connection user lost, or Horde's file-system temp directories have wrong perms. `/scripts/restartsrv_cpsrvd` and `/scripts/upcp` can refresh many components. If issue persists, consider switching from Horde to Roundcube as default webmail client.
Yes for long-term. cPanel removed Horde from default webmail options in recent versions. Roundcube is the modern alternative — actively maintained, better UI. Migration: users log in, address books need re-import (export from Horde, import to Roundcube via vCard). Plan ahead before Horde stops working entirely.
Related articles
Fixing MySQL Error 0x80004005 Due to Corrupt Database Files
Fix: "0 Databases Allowed" Error in Hosting Plan
Understanding cphorde in cPanel — What It Is & How to Fix Issues