UK Web Hosting LiveChat Software

How to recover corrupted data in /var/cpanel/userdata

0 votes
asked 5 years ago in Cpanel Issues & Tutorials by whukadmin (5,940 points)

1 Answer

0 votes

1. Take the backup of /var/cpanel/userdata

# cp /var/cpanel/userdata /var/cpanel/userdata.bak

2. Run /usr/local/cpanel/bin/userdata_update –reset so that /var/cpanel/userdata can be regenerated.

# /usr/local/cpanel/bin/userdata_update –reset

3. After doing this rebuilt the userdatacache by running

# /usr/local/cpanel//scripts/updateuserdatacache --force

5. Rebuild Apache conf

# /usr/local/cpanel/bin/build_apache_conf

6. Restart Apache.

# /etc/init.d/httpd stop

# /etc/init.d/httpd start

answered 5 years ago by whukadmin (5,940 points)

Related questions