{"id":2161,"date":"2017-10-05T18:10:21","date_gmt":"2017-10-05T12:40:21","guid":{"rendered":"https:\/\/blog.pheonixsolutions.com\/?p=2161"},"modified":"2017-10-06T20:14:30","modified_gmt":"2017-10-06T14:44:30","slug":"vestacp-bind-loading-master-file-failed-permission-denied","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/","title":{"rendered":"VestaCP &#8211; bind &#8211; loading from master file failed: permission denied"},"content":{"rendered":"<h2 class=\"topic-title\">zone example.com\/IN: loading from master file \/home\/admin\/conf\/dns\/example.com.db failed: permission denied<\/h2>\n<p><strong>Date Posted: 05-10-2017<\/strong><\/p>\n<p><strong>Assumptions:-<\/strong><\/p>\n<p>We assume that you have the following setup<\/p>\n<ul>\n<li>VestaCP<\/li>\n<li>Ubuntu 16.04<\/li>\n<li>Bind9<\/li>\n<\/ul>\n<p><strong>Error:-<\/strong><\/p>\n<p>Bind might refuse to reload due to below errors<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">zone example.com\/IN: loading from master file \/home\/admin\/conf\/dns\/example.com.db failed: permission denied<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Fix:-<\/strong><\/p>\n<p>Check permission and it seems fine. Else you need correct it accordingly<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">root@server:\/home\/admin\/conf\/dns# ll\r\ntotal 12\r\ndrwxr-x--x 2 root root 4096 Nov 28 13:09 .\/\r\ndrwxr-xr-x 5 root root 4096 Nov  9 19:10 ..\/\r\n-rw-r----- 1 root bind  645 Nov 28 13:09 example.com.db<\/pre>\n<p>&nbsp;<\/p>\n<p>Check bind and make sure its running fine<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">root@server:\/home\/admin\/conf\/dns# ps aux | grep bind\r\nbind     16679  0.0  0.3 238688 13692 ?        Ssl  13:18   0:00 \/usr\/sbin\/named -u bind\r\nroot     17918  0.0  0.0  11740   936 pts\/2    S+   13:33   0:00 grep --color=auto bind<\/pre>\n<p>The real issue is that we need to allow zone files in\u00a0apparmor security module. Because in vestaCP zone files are stored under \/home\/admin\/conf\/dns.<\/p>\n<p>To allow this:-<\/p>\n<p>In \/etc\/apparmor.d\/usr.sbin.named<\/p>\n<p>Find the line &#8216;<code>\/etc\/bind\/** rw,'<\/code>and add this line below<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">\/home\/** rwm,<\/pre>\n<p>Restart service<\/p>\n<p><code>systemctl restart apparmor<\/code><\/p>\n<p>Now verify restarting bind service<\/p>\n<p><code>systemctl restart bind9<\/code><\/p>\n<p>You&#8217;re done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>zone example.com\/IN: loading from master file \/home\/admin\/conf\/dns\/example.com.db failed: permission denied Date Posted: 05-10-2017 Assumptions:- We assume that you have the following setup VestaCP Ubuntu 16.04 Bind9 Error:- Bind might refuse to reload due to below errors zone example.com\/IN: loading from master file \/home\/admin\/conf\/dns\/example.com.db failed: permission denied &nbsp; Fix:- Check permission&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">VestaCP &#8211; bind &#8211; loading from master file failed: permission denied<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[282,343],"tags":[392,391],"class_list":{"0":"post-2161","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-ubuntu","7":"category-vestacp","8":"tag-bind9","9":"tag-vesta","10":"h-entry","12":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"zone example.com\/IN: loading from master file \/home\/admin\/conf\/dns\/example.com.db failed: permission denied Date Posted: 05-10-2017 Assumptions:- We assume that you have the following setup VestaCP Ubuntu 16.04 Bind9 Error:- Bind might refuse to reload due to below errors zone example.com\/IN: loading from master file \/home\/admin\/conf\/dns\/example.com.db failed: permission denied &nbsp; Fix:- Check permission&hellip; Continue Reading VestaCP &#8211; bind &#8211; loading from master file failed: permission denied\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-10-05T12:40:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-10-06T14:44:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/09\/PX2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"3837\" \/>\n\t<meta property=\"og:image:height\" content=\"2540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\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:\\\/\\\/pheonixsolutions.com\\\/blog\\\/vestacp-bind-loading-master-file-failed-permission-denied\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/vestacp-bind-loading-master-file-failed-permission-denied\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\"},\"headline\":\"VestaCP &#8211; bind &#8211; loading from master file failed: permission denied\",\"datePublished\":\"2017-10-05T12:40:21+00:00\",\"dateModified\":\"2017-10-06T14:44:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/vestacp-bind-loading-master-file-failed-permission-denied\\\/\"},\"wordCount\":136,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"keywords\":[\"bind9\",\"Vesta\"],\"articleSection\":[\"Ubuntu\",\"VestaCP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/vestacp-bind-loading-master-file-failed-permission-denied\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/vestacp-bind-loading-master-file-failed-permission-denied\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/vestacp-bind-loading-master-file-failed-permission-denied\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"datePublished\":\"2017-10-05T12:40:21+00:00\",\"dateModified\":\"2017-10-06T14:44:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/vestacp-bind-loading-master-file-failed-permission-denied\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/vestacp-bind-loading-master-file-failed-permission-denied\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/vestacp-bind-loading-master-file-failed-permission-denied\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"VestaCP &#8211; bind &#8211; loading from master file failed: permission denied\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/blog.pheonixsolutions.com\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","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:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"zone example.com\/IN: loading from master file \/home\/admin\/conf\/dns\/example.com.db failed: permission denied Date Posted: 05-10-2017 Assumptions:- We assume that you have the following setup VestaCP Ubuntu 16.04 Bind9 Error:- Bind might refuse to reload due to below errors zone example.com\/IN: loading from master file \/home\/admin\/conf\/dns\/example.com.db failed: permission denied &nbsp; Fix:- Check permission&hellip; Continue Reading VestaCP &#8211; bind &#8211; loading from master file failed: permission denied","og_url":"https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2017-10-05T12:40:21+00:00","article_modified_time":"2017-10-06T14:44:30+00:00","og_image":[{"width":3837,"height":2540,"url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/09\/PX2.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/"},"author":{"name":"admin","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503"},"headline":"VestaCP &#8211; bind &#8211; loading from master file failed: permission denied","datePublished":"2017-10-05T12:40:21+00:00","dateModified":"2017-10-06T14:44:30+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/"},"wordCount":136,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"keywords":["bind9","Vesta"],"articleSection":["Ubuntu","VestaCP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/","url":"https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"datePublished":"2017-10-05T12:40:21+00:00","dateModified":"2017-10-06T14:44:30+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/vestacp-bind-loading-master-file-failed-permission-denied\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"VestaCP &#8211; bind &#8211; loading from master file failed: permission denied"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","caption":"admin"},"sameAs":["http:\/\/blog.pheonixsolutions.com"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-yR","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=2161"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2161\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=2161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=2161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=2161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}