How to Repair Horde Database (cphorde) in cPanel
Check If the Horde Database Exists
Before repairing, check if the Horde database is available.
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).
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
- Log into cPanel
- Go to Webmail > Horde
- 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!


