{"id":9112,"date":"2022-04-25T06:35:48","date_gmt":"2022-04-25T06:35:48","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=9112"},"modified":"2022-04-25T06:35:48","modified_gmt":"2022-04-25T06:35:48","slug":"how-to-rebuild-corrupted-user-data-files-in-cpanel","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/","title":{"rendered":"How to Rebuild Corrupted User Data Files in cPanel"},"content":{"rendered":"<p>Your server&#8217;s user data files may become faulty in certain conditions, causing problems while moving or running your cPanel account. Fortunately, a valid and working httpd.conf file on the server may be used to fix these user data files.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Repairing Corrupted User Data Files<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">Follow these steps to reconstruct a corrupted user data file in cPanel:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">To begin, log in as the root user to your WHM\/cPanel server with your username and password.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The next step is to find the user data files, which are located in<\/span><b> \/var\/cpanel<\/b><span style=\"font-weight: 400;\">. Verify that the user data directory exists on the server.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">If the directory exists, use the mv command to transfer or rename it. This is what it should look like:<\/span><\/li>\n<\/ol>\n<div class=\"service-sh\">\n<pre>mv \/var\/cpanel\/userdata \/var\/cpanel\/userdata_backup\\\r\n\r\n<\/pre>\n<\/div>\n<ul>\n<li><span style=\"font-weight: 400;\">Now, use the command mkdir to create a new user data directory:<\/span><\/li>\n<\/ul>\n<div class=\"service-sh\">\n<pre>mkdir \/var\/cpanel\/userdata\r\n\r\n<\/pre>\n<\/div>\n<ul>\n<li><span style=\"font-weight: 400;\">Now that we&#8217;ve built a new user data directory, execute the script user data update with the \u2013reset flag to rebuild the user data files for all of the accounts on your<\/span><b> cPanel server<\/b><span style=\"font-weight: 400;\">. The user data files for all accounts hosted on your cPanel server will be rebuilt as a result of this.<\/span><\/li>\n<\/ul>\n<div class=\"service-sh\">\n<pre>\/usr\/local\/cpanel\/bin\/userdata_update \u2013reset\r\n\r\n<\/pre>\n<\/div>\n<ul>\n<li><span style=\"font-weight: 400;\">After that, you&#8217;ll need to fix the permissions for the newly created user data files, which you can accomplish using the following command:<\/span><\/li>\n<\/ul>\n<div class=\"service-sh\">\n<pre>\/usr\/local\/cpanel\/bin\/fix_userdata_perms\r\n\r\n<\/pre>\n<\/div>\n<ul>\n<li><span style=\"font-weight: 400;\">You&#8217;ll need to refresh the system&#8217;s cache now that you&#8217;ve created a new user data file. This can be done with the following command:<\/span><\/li>\n<\/ul>\n<div class=\"service-sh\">\n<pre>\/scripts\/updateuserdatacache\r\n\r\n<\/pre>\n<\/div>\n<ul>\n<li><span style=\"font-weight: 400;\">Now, with the command: <\/span>rebuild apache config<span style=\"font-weight: 400;\">, rebuild the apache configuration to use the newly regenerated user data files:<\/span><\/li>\n<\/ul>\n<div class=\"service-sh\">\n<pre>\/scripts\/rebuildhttpdconf<\/pre>\n<\/div>\n<ul>\n<li><span style=\"font-weight: 400;\">Finally, use the following command to restart the <\/span>Apache service<span style=\"font-weight: 400;\">:<\/span><\/li>\n<\/ul>\n<div class=\"service-sh\">\n<pre>\/scripts\/restartsrv_httpd<\/pre>\n<\/div>\n<p><b class=\"text-success\">And here you have it.<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your server&#8217;s user data files may become faulty in certain conditions, causing problems while moving or running your cPanel account. Fortunately, a valid and working httpd.conf file on the server may be used to fix these user data files. &nbsp; Repairing Corrupted User Data Files Follow these steps to reconstruct a corrupted user data file [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":19,"featured_media":9143,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,1,4],"tags":[],"class_list":["post-9112","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backup","category-cpanel","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Rebuild Corrupted User Data Files in cPanel - cPanel Plesk<\/title>\n<meta name=\"description\" content=\"To begin, log in as the root user to your WHM\/cPanel server using your username and password. After that, you&#039;ll need to find the user data files, which may be found in the user data folder.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Rebuild Corrupted User Data Files in cPanel - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"To begin, log in as the root user to your WHM\/cPanel server using your username and password. After that, you&#039;ll need to find the user data files, which may be found in the user data folder.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/03\/Files.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"samama\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/\"},\"author\":{\"name\":\"samama\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\"},\"headline\":\"How to Rebuild Corrupted User Data Files in cPanel\",\"datePublished\":\"2022-04-25T06:35:48+00:00\",\"dateModified\":\"2022-04-25T06:35:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/\"},\"wordCount\":284,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/03\/Files.png\",\"articleSection\":[\"Backup\",\"Cpanel\",\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/\",\"name\":\"How to Rebuild Corrupted User Data Files in cPanel - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/03\/Files.png\",\"datePublished\":\"2022-04-25T06:35:48+00:00\",\"dateModified\":\"2022-04-25T06:35:48+00:00\",\"description\":\"To begin, log in as the root user to your WHM\/cPanel server using your username and password. After that, you'll need to find the user data files, which may be found in the user data folder.\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/03\/Files.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/03\/Files.png\",\"width\":1024,\"height\":538},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Rebuild Corrupted User Data Files in cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\",\"name\":\"samama\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"caption\":\"samama\"},\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Rebuild Corrupted User Data Files in cPanel - cPanel Plesk","description":"To begin, log in as the root user to your WHM\/cPanel server using your username and password. After that, you'll need to find the user data files, which may be found in the user data folder.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/","twitter_card":"summary_large_image","twitter_title":"How to Rebuild Corrupted User Data Files in cPanel - cPanel Plesk","twitter_description":"To begin, log in as the root user to your WHM\/cPanel server using your username and password. After that, you'll need to find the user data files, which may be found in the user data folder.","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/03\/Files.png","twitter_misc":{"Written by":"samama","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/"},"author":{"name":"samama","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465"},"headline":"How to Rebuild Corrupted User Data Files in cPanel","datePublished":"2022-04-25T06:35:48+00:00","dateModified":"2022-04-25T06:35:48+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/"},"wordCount":284,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/03\/Files.png","articleSection":["Backup","Cpanel","General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/","url":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/","name":"How to Rebuild Corrupted User Data Files in cPanel - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/03\/Files.png","datePublished":"2022-04-25T06:35:48+00:00","dateModified":"2022-04-25T06:35:48+00:00","description":"To begin, log in as the root user to your WHM\/cPanel server using your username and password. After that, you'll need to find the user data files, which may be found in the user data folder.","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/03\/Files.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/03\/Files.png","width":1024,"height":538},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-rebuild-corrupted-user-data-files-in-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"How to Rebuild Corrupted User Data Files in cPanel"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465","name":"samama","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","caption":"samama"},"url":"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=9112"}],"version-history":[{"count":10,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9112\/revisions"}],"predecessor-version":[{"id":9454,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9112\/revisions\/9454"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/9143"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=9112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=9112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=9112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}