{"id":9437,"date":"2020-05-13T13:15:18","date_gmt":"2020-05-13T13:15:18","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=9437"},"modified":"2020-05-13T13:15:18","modified_gmt":"2020-05-13T13:15:18","slug":"apache-error-no-matching-directoryindex","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/","title":{"rendered":"How to Resolve the Apache Error: No matching DirectoryIndex?"},"content":{"rendered":"<div class=\"vlt-box vlt-blue\">\n<div class=\"box-title\">Note<\/div>\n<div class=\"box-content\">\n<p>For this tutorial, you need to have root access and so, this can be done only on VPS, Dedicated and Cloud.<\/p>\n<\/div>\n<\/div>\n<p>You might face this error while attempting to access applications that have an index.php file (or other index file), but not an<strong> index.html<\/strong> or other specified <strong>\u2018directory index\u2019<\/strong> file.<\/p>\n<p>For example, phpMyAdmin comprises of index.php file after installation, but not an index.html file.<\/p>\n<p>Apache is by default configured with the below command:<\/p>\n<pre class=\"lang:default decode:true\">DirectoryIndex index.html<\/pre>\n<p>It means that Apache will only check for the directory files that are named index.html.<\/p>\n<p>While trying to access phpMyAdmin, Apache gives the below error:<\/p>\n<div class=\"kb-box-focus kb-box-focus-rounded kb-box-focus-red\">[autoindex:error] [pid 20115] [client 10.30.6.80:50800] AH01276: Cannot serve directory \/usr\/share\/phpMyAdmin\/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive<\/div>\n<p>In this case, add <strong>index.php<\/strong> to the <strong>DirectoryIndex<\/strong> directive.<\/p>\n<pre class=\"lang:default decode:true \">vim \/etc\/httpd\/conf\/httpd.conf<\/pre>\n<p><strong>Change the below line:<\/strong><\/p>\n<pre class=\"lang:default decode:true\">DirectoryIndex index.html<\/pre>\n<p><strong>to:<\/strong><\/p>\n<pre class=\"lang:default decode:true \">DirectoryIndex index.html index.php<\/pre>\n<p>Now exit and save the file using the command :<strong>wq<\/strong> .<\/p>\n<p>Ensure to restart Apache:<\/p>\n<pre class=\"lang:default decode:true \">systemctl restart httpd<\/pre>\n<p>Congratulations! You have now learned to solve the Apache Error: No matching DirectoryIndex.<\/p>\n<p><strong>Also Read<\/strong><br \/>\n<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/steps-to-modify-apache-directory-listing-style\/\" target=\"_blank\" rel=\"noopener\"><strong>Steps to Modify Apache Directory Listing Style<\/strong><\/a><br \/>\n<a href=\"https:\/\/www.milesweb.in\/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>Note For this tutorial, you need to have root access and so, this can be done only on VPS, Dedicated and Cloud. You might face this error while attempting to access applications that have an index.php file (or other index file), but not an index.html or other specified \u2018directory index\u2019 file. For example, phpMyAdmin comprises [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[13,1441,1440,1443,119,1442,61],"class_list":["post-9437","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-web-hosting-faq","tag-apache","tag-apache-error","tag-apache-server","tag-cloud-servers","tag-dedicated-server","tag-no-matching-directoryindex-error","tag-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Resolve the Apache Error: No matching DirectoryIndex?<\/title>\n<meta name=\"description\" content=\"The article provides the steps to resolve the Apache Error: No matching DirectoryIndex. To resolve this error you need to have root access to the server.\" \/>\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.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Resolve the Apache Error: No matching DirectoryIndex?\" \/>\n<meta property=\"og:description\" content=\"The article provides the steps to resolve the Apache Error: No matching DirectoryIndex. To resolve this error you need to have root access to the server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-13T13:15:18+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=\"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.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/\"},\"author\":{\"name\":\"Pallavi Godse\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"headline\":\"How to Resolve the Apache Error: No matching DirectoryIndex?\",\"datePublished\":\"2020-05-13T13:15:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/\"},\"wordCount\":196,\"commentCount\":0,\"keywords\":[\"Apache\",\"apache error\",\"apache server\",\"cloud servers\",\"dedicated server\",\"no matching directoryindex error\",\"VPS\"],\"articleSection\":[\"Web Hosting FAQ\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/\",\"name\":\"How to Resolve the Apache Error: No matching DirectoryIndex?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2020-05-13T13:15:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"The article provides the steps to resolve the Apache Error: No matching DirectoryIndex. To resolve this error you need to have root access to the server.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Resolve the Apache Error: No matching DirectoryIndex?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?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.\",\"sameAs\":[\"https:\/\/www.milesweb.in\"],\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Resolve the Apache Error: No matching DirectoryIndex?","description":"The article provides the steps to resolve the Apache Error: No matching DirectoryIndex. To resolve this error you need to have root access to the server.","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.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/","og_locale":"en_US","og_type":"article","og_title":"How to Resolve the Apache Error: No matching DirectoryIndex?","og_description":"The article provides the steps to resolve the Apache Error: No matching DirectoryIndex. To resolve this error you need to have root access to the server.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2020-05-13T13:15:18+00:00","author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/"},"author":{"name":"Pallavi Godse","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"headline":"How to Resolve the Apache Error: No matching DirectoryIndex?","datePublished":"2020-05-13T13:15:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/"},"wordCount":196,"commentCount":0,"keywords":["Apache","apache error","apache server","cloud servers","dedicated server","no matching directoryindex error","VPS"],"articleSection":["Web Hosting FAQ"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/","name":"How to Resolve the Apache Error: No matching DirectoryIndex?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2020-05-13T13:15:18+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"The article provides the steps to resolve the Apache Error: No matching DirectoryIndex. To resolve this error you need to have root access to the server.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/apache-error-no-matching-directoryindex\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Resolve the Apache Error: No matching DirectoryIndex?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?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.","sameAs":["https:\/\/www.milesweb.in"],"url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pallavi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=9437"}],"version-history":[{"count":5,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9437\/revisions"}],"predecessor-version":[{"id":9442,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9437\/revisions\/9442"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=9437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=9437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=9437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}