{"id":25133,"date":"2026-07-09T13:32:40","date_gmt":"2026-07-09T11:32:40","guid":{"rendered":"https:\/\/kunskap.websupport.se\/?post_type=ht_kb&#038;p=25133"},"modified":"2026-07-09T13:32:42","modified_gmt":"2026-07-09T11:32:42","slug":"directory-settings-php-apache-and-password-protection","status":"publish","type":"ht_kb","link":"https:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/","title":{"rendered":"Directory Settings \u2013 PHP, Apache and Password Protection"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">For experienced users<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this section, we explain how to configure your PHP and Apache settings for your different folders and files. We also show you how to password-protect your directories. After you password-protect a directory, the server will ask for a username and password. You can create multiple access users for the same directory, but you cannot create one access account for multiple directories.<br><br>You can also configure this via your .htpasswd file, which you&#8217;ll find in the respective public_html folder.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the left menu, go to &#8220;Advanced Configuration &gt; Web &gt; Directory Settings&#8221;<\/li>\n\n\n\n<li>Click &#8220;Settings&#8221; next to the directory you want to manage and choose Apache Settings, Password Protection, or PHP Settings.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"599\" height=\"556\" src=\"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2020\/12\/chrome_zNzIBQb6Cr.png\" alt=\"\" class=\"wp-image-23391\" srcset=\"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2020\/12\/chrome_zNzIBQb6Cr.png 599w, https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2020\/12\/chrome_zNzIBQb6Cr-300x278.png 300w, https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2020\/12\/chrome_zNzIBQb6Cr-50x46.png 50w, https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2020\/12\/chrome_zNzIBQb6Cr-60x56.png 60w, https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2020\/12\/chrome_zNzIBQb6Cr-100x93.png 100w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>For experienced users In this section, we explain how to configure your PHP and Apache settings for your different folders and files. We also show you how to password-protect your directories. After you password-protect a directory, the server will ask for a username and password. You can create multiple access&#8230;<\/p>\n","protected":false},"author":44,"template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[424],"ht-kb-tag":[],"class_list":["post-25133","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-web-and-php-settings"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Directory Settings \u2013 PHP, Apache and Password Protection - Websupport kunskapsdatabas<\/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:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Directory Settings \u2013 PHP, Apache and Password Protection - Websupport kunskapsdatabas\" \/>\n<meta property=\"og:description\" content=\"For experienced users In this section, we explain how to configure your PHP and Apache settings for your different folders and files. We also show you how to password-protect your directories. After you password-protect a directory, the server will ask for a username and password. You can create multiple access...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/\" \/>\n<meta property=\"og:site_name\" content=\"Websupport kunskapsdatabas\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-09T11:32:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2020\/12\/chrome_zNzIBQb6Cr.png\" \/>\n\t<meta property=\"og:image:width\" content=\"599\" \/>\n\t<meta property=\"og:image:height\" content=\"556\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/directory-settings-php-apache-and-password-protection\\\/\",\"url\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/directory-settings-php-apache-and-password-protection\\\/\",\"name\":\"Directory Settings \u2013 PHP, Apache and Password Protection - Websupport kunskapsdatabas\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/directory-settings-php-apache-and-password-protection\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/directory-settings-php-apache-and-password-protection\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kunskap.websupport.se\\\/app\\\/uploads\\\/sites\\\/4\\\/2020\\\/12\\\/chrome_zNzIBQb6Cr.png\",\"datePublished\":\"2026-07-09T11:32:40+00:00\",\"dateModified\":\"2026-07-09T11:32:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/directory-settings-php-apache-and-password-protection\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/directory-settings-php-apache-and-password-protection\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/directory-settings-php-apache-and-password-protection\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kunskap.websupport.se\\\/app\\\/uploads\\\/sites\\\/4\\\/2020\\\/12\\\/chrome_zNzIBQb6Cr.png\",\"contentUrl\":\"https:\\\/\\\/kunskap.websupport.se\\\/app\\\/uploads\\\/sites\\\/4\\\/2020\\\/12\\\/chrome_zNzIBQb6Cr.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/directory-settings-php-apache-and-password-protection\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kunskap.websupport.se\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Directory Settings \u2013 PHP, Apache and Password Protection\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/\",\"name\":\"Websupport kunskapsdatabas\",\"description\":\"Websupport kunskapsdatabas\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Directory Settings \u2013 PHP, Apache and Password Protection - Websupport kunskapsdatabas","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:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/","og_locale":"en_US","og_type":"article","og_title":"Directory Settings \u2013 PHP, Apache and Password Protection - Websupport kunskapsdatabas","og_description":"For experienced users In this section, we explain how to configure your PHP and Apache settings for your different folders and files. We also show you how to password-protect your directories. After you password-protect a directory, the server will ask for a username and password. You can create multiple access...","og_url":"https:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/","og_site_name":"Websupport kunskapsdatabas","article_modified_time":"2026-07-09T11:32:42+00:00","og_image":[{"width":599,"height":556,"url":"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2020\/12\/chrome_zNzIBQb6Cr.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/","url":"https:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/","name":"Directory Settings \u2013 PHP, Apache and Password Protection - Websupport kunskapsdatabas","isPartOf":{"@id":"https:\/\/kunskap.websupport.se\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/#primaryimage"},"image":{"@id":"https:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/#primaryimage"},"thumbnailUrl":"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2020\/12\/chrome_zNzIBQb6Cr.png","datePublished":"2026-07-09T11:32:40+00:00","dateModified":"2026-07-09T11:32:42+00:00","breadcrumb":{"@id":"https:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/#primaryimage","url":"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2020\/12\/chrome_zNzIBQb6Cr.png","contentUrl":"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2020\/12\/chrome_zNzIBQb6Cr.png"},{"@type":"BreadcrumbList","@id":"https:\/\/kunskap.websupport.se\/en\/kb\/directory-settings-php-apache-and-password-protection\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kunskap.websupport.se\/"},{"@type":"ListItem","position":2,"name":"Directory Settings \u2013 PHP, Apache and Password Protection"}]},{"@type":"WebSite","@id":"https:\/\/kunskap.websupport.se\/en\/#website","url":"https:\/\/kunskap.websupport.se\/en\/","name":"Websupport kunskapsdatabas","description":"Websupport kunskapsdatabas","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kunskap.websupport.se\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb\/25133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/users\/44"}],"version-history":[{"count":1,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb\/25133\/revisions"}],"predecessor-version":[{"id":25136,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb\/25133\/revisions\/25136"}],"wp:attachment":[{"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/media?parent=25133"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb-category?post=25133"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=25133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}