Answered by the Webhosting Experts

cPanel Servers
at Hivelocity

Introducing: Flat Rate Pricing
The most affordable way to run a cPanel Dedicated Server. Simple, flat rate pricing in 3 tiers.

1-500 Accounts $45/mo.

501-1000 $114/mo.

1001+ Accounts $189/mo.
(*Plus $.175/additional account)

Tags
...
...

How to Rebuild Corrupted User Data Files in cPanel

In certain circumstances, your server’s user data files may become corrupt, creating issues while migrating or operating your cPanel account. Luckily, these user data files can be repaired using a valid and working httpd.conf file on the server.

 

Repairing Corrupted User Data Files

To rebuild a corrupted user data file within cPanel, follow these steps:

  1. First, log in to your WHM/cPanel server as the root user using your username and password.
     
  2. Next, you’ll need to locate the user data files, which can be found at /var/cpanel. Make sure the userdata directory is present on the server.
     
  3. If the directory does exist, move it or rename it with the mv command. It should look something like this:
     
    mv /var/cpanel/userdata /var/cpanel/userdata_backup
     
  4. Now, create a new userdata directory with the command mkdir:
     
    mkdir /var/cpanel/userdata
     
  5. Now that we have a new userdata directory created, in order to rebuild the userdata files for all the accounts hosted on your cPanel server, run the script userdata_update with the –reset flag. This will rebuild the userdata files for all accounts hosted on your cPanel server.
     
    /usr/local/cpanel/bin/userdata_update –reset
     
  6. Next, you’ll need to fix the permissions for the newly generated user data files which can be done by running the command:
     
    /usr/local/cpanel/bin/fix_userdata_perms
     
  7. Since you’ve generated a new userdata file, you will need to update the system’s cache. This can be done using the command:
     
    /scripts/updateuserdatacache
     
  8. Now, rebuild the apache configuration in order to use the newly rebuilt userdata files with the command:
     
    /scripts/rebuildhttpdconf
     
  9. Lastly, restart the apache service with the command:
     
    /scripts/restartsrv_httpd

And there you have it!

 

Popular Links

Looking for more information on cPanel? Search our Knowledge Base!

Interested in more articles about Control Panels? Navigate to our Categories page using the bar on the left or check out these popular articles:

Popular tags within this category include: cPanel, WHM, Plesk, DirectAdmin, and more. 

Don’t see what you’re looking for? Use the search bar at the top to search our entire Knowledge Base.

 

The Hivelocity Difference

Seeking a better Dedicated Server solution? In the market for Private Cloud or Colocation services? Check out Hivelocity’s extensive list of products for great deals and offers.

With best-in-class customer service, affordable pricing, a wide-range of fully-customizable options, and a network like no other, Hivelocity is the hosting solution you’ve been waiting for.

Unsure which of our services is best for your particular needs? Call or live chat with one of our sales agents today and see the difference Hivelocity can make for you.

Share

Facebook
Twitter
LinkedIn
Email
WhatsApp

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.

Watch our servers in their natural habitat

Click here to see more live streams or take a tour of our facilities.

cPanel Servers
at Hivelocity

Introducing: Flat Rate Pricing
The most affordable way to run a cPanel Dedicated Server. Simple, flat rate pricing in 3 tiers.

1-500 Accounts $45/mo.

501-1000 $114/mo.

1001+ Accounts $189/mo.
(*Plus $.175/additional account)