{"id":6720,"date":"2019-10-22T08:47:49","date_gmt":"2019-10-22T08:47:49","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=6720"},"modified":"2022-02-10T12:32:57","modified_gmt":"2022-02-10T12:32:57","slug":"steps-to-change-the-default-unmask-for-apache-php","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/","title":{"rendered":"Steps to Change the Default Unmask for Apache\/PHP"},"content":{"rendered":"<p>The <strong>Apache\/PHP<\/strong> umask finds the permission of newly created files on the server. Root access is needed to change the umask, which is only available on <a href=\"https:\/\/www.milesweb.co.uk\/hosting\/dedicated-servers\/\" target=\"_blank\" rel=\"noopener\"><strong>Dedicated hosting plans<\/strong><\/a> without Geeky features and a Performance Booster.<\/p>\n<p>For changing the umask, open the following file:<\/p>\n<pre class=\"lang:default decode:true \">\/usr\/local\/apache\/bin\/envvars<\/pre>\n<p>Inside it, add the below line:<\/p>\n<pre class=\"lang:default decode:true\">umask 022<\/pre>\n<p>With this the default permissions to 022 will be set. Restart the Apache service on the server, for the change to take effect.<\/p>\n<p><strong>Also Read: <\/strong><br \/>\n<a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-restart-apache-on-dedicated-server\/\" target=\"_blank\" rel=\"noopener\"><strong>Learn to Restart Apache on Dedicated Server<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Apache\/PHP umask finds the permission of newly created files on the server. Root access is needed to change the umask, which is only available on Dedicated hosting plans without Geeky features and a Performance Booster. For changing the umask, open the following file: \/usr\/local\/apache\/bin\/envvars Inside it, add the below line: umask 022 With this [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[13,1069,1068],"class_list":["post-6720","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-dedicated-server-faq","tag-apache","tag-change-default-unmask-for-apache","tag-default-unmask-for-apache-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Steps to Change the Default Unmask for Apache\/PHP<\/title>\n<meta name=\"description\" content=\"The article reveals the steps to change the default unmask for Apache\/PHP.\" \/>\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.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Steps to Change the Default Unmask for Apache\/PHP\" \/>\n<meta property=\"og:description\" content=\"The article reveals the steps to change the default unmask for Apache\/PHP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-22T08:47:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-10T12:32:57+00:00\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated 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\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/\",\"name\":\"Steps to Change the Default Unmask for Apache\/PHP\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2019-10-22T08:47:49+00:00\",\"dateModified\":\"2022-02-10T12:32:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"The article reveals the steps to change the default unmask for Apache\/PHP.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Steps to Change the Default Unmask for Apache\/PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Steps to Change the Default Unmask for Apache\/PHP","description":"The article reveals the steps to change the default unmask for Apache\/PHP.","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.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/","og_locale":"en_GB","og_type":"article","og_title":"Steps to Change the Default Unmask for Apache\/PHP","og_description":"The article reveals the steps to change the default unmask for Apache\/PHP.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-10-22T08:47:49+00:00","article_modified_time":"2022-02-10T12:32:57+00:00","author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/","name":"Steps to Change the Default Unmask for Apache\/PHP","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2019-10-22T08:47:49+00:00","dateModified":"2022-02-10T12:32:57+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"The article reveals the steps to change the default unmask for Apache\/PHP.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-change-the-default-unmask-for-apache-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Steps to Change the Default Unmask for Apache\/PHP"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/"}]}},"views":595,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=6720"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6720\/revisions"}],"predecessor-version":[{"id":13171,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6720\/revisions\/13171"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=6720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=6720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=6720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}