{"id":99,"date":"2025-09-01T00:00:47","date_gmt":"2025-09-01T00:00:47","guid":{"rendered":"https:\/\/bodhost.com\/kb\/\/web-hosting\/?p=99"},"modified":"2026-02-26T14:02:07","modified_gmt":"2026-02-26T14:02:07","slug":"webalizer-errors","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/webalizer-errors\/","title":{"rendered":"Fixing Webalizer Errors: Unable to Lock DNS Cache File"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\"><strong>Introduction:<\/strong><br \/>If you encounter the Webalizer errors:<br \/>Error: Unable to lock DNS cache file \/usr\/local\/psa\/var\/webalizer.cache<br \/>don\u2019t worry this is a common issue caused by cache file permissions. You can quickly resolve it by recreating the cache file and correcting its ownership and permissions.<\/p>\r\n<h3>Steps to Fix Webalizer Errors<\/h3>\r\n<p><strong>1. Remove the existing cache file<\/strong><\/p>\r\n<p>rm -f \/usr\/local\/psa\/var\/webalizer.cache<\/p>\r\n<p><strong>2. Create a new empty cache file<\/strong><\/p>\r\n<p>touch \/usr\/local\/psa\/var\/webalizer.cache<\/p>\r\n<p><strong>3. Set the correct ownership<\/strong><\/p>\r\n<p>chown root:root \/usr\/local\/psa\/var\/webalizer.cache<\/p>\r\n<p><strong>4. Set proper file permissions<\/strong><\/p>\r\n<p>chmod 644 \/usr\/local\/psa\/var\/webalizer.cache<\/p>\r\n<p><strong>5. Verify file status<\/strong><\/p>\r\n<p>stat \/usr\/local\/psa\/var\/webalizer.cache<\/p>\r\n<h4>Pro Tip<\/h4>\r\n<p>Always make sure you\u2019re logged in as root before making changes. Incorrect ownership or permissions can prevent Webalizer from functioning correctly.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Introduction:If you encounter the Webalizer errors:Error: Unable to lock DNS cache file \/usr\/local\/psa\/var\/webalizer.cachedon\u2019t worry this is a common issue caused by cache file permissions. You can quickly resolve it by&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/webalizer-errors\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[666],"tags":[1216],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-general","tag-webalizer-errors"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Fix Webalizer Errors: Unable to Lock DNS Cache File<\/title>\n<meta name=\"description\" content=\"Learn how to fix Webalizer errors in Plesk. Step-by-step guide to resolve the \u201cUnable to lock DNS cache file\u201d issue with proper permissions.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/webalizer-errors\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fix Webalizer Errors: Unable to Lock DNS Cache File\" \/>\n<meta property=\"og:description\" content=\"Learn how to fix Webalizer errors in Plesk. Step-by-step guide to resolve the \u201cUnable to lock DNS cache file\u201d issue with proper permissions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/webalizer-errors\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-01T00:00:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:07+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/webalizer-errors\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/webalizer-errors\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/c48414ad1536cea20e85282b0737a9f9\"},\"headline\":\"Fixing Webalizer Errors: Unable to Lock DNS Cache File\",\"datePublished\":\"2025-09-01T00:00:47+00:00\",\"dateModified\":\"2026-02-26T14:02:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/webalizer-errors\\\/\"},\"wordCount\":146,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"Webalizer Errors\"],\"articleSection\":[\"General Discussion\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/webalizer-errors\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/webalizer-errors\\\/\",\"name\":\"Fix Webalizer Errors: Unable to Lock DNS Cache File\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2025-09-01T00:00:47+00:00\",\"dateModified\":\"2026-02-26T14:02:07+00:00\",\"description\":\"Learn how to fix Webalizer errors in Plesk. Step-by-step guide to resolve the \u201cUnable to lock DNS cache file\u201d issue with proper permissions.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/webalizer-errors\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/webalizer-errors\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/webalizer-errors\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"General Discussion\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/general\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fixing Webalizer Errors: Unable to Lock DNS Cache File\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/c48414ad1536cea20e85282b0737a9f9\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fix Webalizer Errors: Unable to Lock DNS Cache File","description":"Learn how to fix Webalizer errors in Plesk. Step-by-step guide to resolve the \u201cUnable to lock DNS cache file\u201d issue with proper permissions.","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:\/\/www.bodhost.com\/kb\/webalizer-errors\/","og_locale":"en_US","og_type":"article","og_title":"Fix Webalizer Errors: Unable to Lock DNS Cache File","og_description":"Learn how to fix Webalizer errors in Plesk. Step-by-step guide to resolve the \u201cUnable to lock DNS cache file\u201d issue with proper permissions.","og_url":"https:\/\/www.bodhost.com\/kb\/webalizer-errors\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2025-09-01T00:00:47+00:00","article_modified_time":"2026-02-26T14:02:07+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/webalizer-errors\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/webalizer-errors\/"},"author":{"name":"admin","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/c48414ad1536cea20e85282b0737a9f9"},"headline":"Fixing Webalizer Errors: Unable to Lock DNS Cache File","datePublished":"2025-09-01T00:00:47+00:00","dateModified":"2026-02-26T14:02:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/webalizer-errors\/"},"wordCount":146,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["Webalizer Errors"],"articleSection":["General Discussion"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/webalizer-errors\/","url":"https:\/\/www.bodhost.com\/kb\/webalizer-errors\/","name":"Fix Webalizer Errors: Unable to Lock DNS Cache File","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2025-09-01T00:00:47+00:00","dateModified":"2026-02-26T14:02:07+00:00","description":"Learn how to fix Webalizer errors in Plesk. Step-by-step guide to resolve the \u201cUnable to lock DNS cache file\u201d issue with proper permissions.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/webalizer-errors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/webalizer-errors\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/webalizer-errors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"General Discussion","item":"https:\/\/www.bodhost.com\/kb\/category\/general\/"},{"@type":"ListItem","position":2,"name":"Fixing Webalizer Errors: Unable to Lock DNS Cache File"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/c48414ad1536cea20e85282b0737a9f9","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.bodhost.com\/kb\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":6,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":14462,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/99\/revisions\/14462"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}