How to rebuild corrupted userdata files in cPanel/WHM
cPanel uses userdata files to keep information about addon domains, parked domains, IPs, PHP versions used by accounts etc. If you came to the conclusion that the cPanel userdata files are corrupted, you can rebuild them. The process detailed below will be possible only if you have a valid httpd.conf file.
How to rebuild corrupted userdata files in cPanel/WHM
1. Log into your cPanel/WHM server with the root credentials
2. Move the existing userdata files to a new location. Use:
mv /var/cpanel/userdata /var/cpanel/userdata-original
3. Re-create the userdata directory with this command:
mkdir /var/cpanel/userdata
