You may come across the situation to fix the corrupted user data files in cPanel. It would happen more while operating or migrating the account of cPanel. Using the HTTP.conf server file, you can easily handle the situation to get back your user data from the corrupted mode.
In this article, let us start to fix this problem immediately:
Step 1: Go to the cPanel or WHM account and use the credentials such as username and password as the root user.
Step 2: It’s time to locate the file “/var/cpanel”. Find whether the presence of the userdata directory is on the server or not.
Step 3: If you still didn’t find the directory of userdata then rename or move with the help of command “mv”.
Here’s the example:
Step 4: Use the below-mentioned command “mkdir” for creating directory of userdata.
Step 5: By now, you have created the userdata directory. Do script running with the –reset flag and userdata_update.
Note: This will automatically get hosted in all accounts of cPanel.
Step 6: By running the above-mentioned command, you can allot permission for userdata that has been generated recently.
Step 7: Along with the permission allotment go with the system cache update too. Use the command for working in the system cache.
Step 8: Now, it is not that easy task to use newly build userdata here. All you need to do is work on apace configuration rebuild too!
Step 9: Use below command to restart the apache service. That’s it!
I Hope, these 9 steps will help you to create a new set of userdata files!
In this article, let us start to fix this problem immediately:
Step 1: Go to the cPanel or WHM account and use the credentials such as username and password as the root user.
Step 2: It’s time to locate the file “/var/cpanel”. Find whether the presence of the userdata directory is on the server or not.
Step 3: If you still didn’t find the directory of userdata then rename or move with the help of command “mv”.
Here’s the example:
Code:
mv /var/cpanel/userdata /var/cpanel/userdata_backup
Code:
mkdir /var/cpanel/userdata
Code:
/usr/local/cpanel/bin/userdata_update –reset
Step 6: By running the above-mentioned command, you can allot permission for userdata that has been generated recently.
Code:
/usr/local/cpanel/bin/fix_userdata_perms
Code:
/scripts/updateuserdatacache
Code:
/scripts/rebuildhttpdconf
Code:
/scripts/rebuildhttpdconf