{"id":1275,"date":"2019-07-05T19:09:28","date_gmt":"2019-07-05T16:09:28","guid":{"rendered":"https:\/\/artem.services\/?p=1261"},"modified":"2019-07-16T12:23:42","modified_gmt":"2019-07-16T09:23:42","slug":"fix-error-phpmyadminapache-2-4-client-denied-by-server-configuration-usr-share-phpmyadmin-2","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=1275&lang=en","title":{"rendered":"FIX ERROR &#8212; phpMyAdmin+Apache 2.4: client denied by server configuration: \/usr\/share\/phpMyAdmin\/"},"content":{"rendered":"<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">When I tried to log in to <strong>phpMyAdmin<\/strong> using <strong>Apache 2.4<\/strong> I received a <strong>403<\/strong> error, in the logs the following message:<\/span><\/span><\/p>\n<pre>client denied by server configuration: \/usr\/share\/phpMyAdmin\/<\/pre>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">The reason is that the configuration for <strong>Apache<\/strong> version <strong>2.2<\/strong><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<h3>Solution:<\/h3>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">Open the configuration file:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nvim \/etc\/httpd\/conf.d\/phpMyAdmin.conf\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">And we change this part:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&lt;Directory \/usr\/share\/phpMyAdmin\/&gt;\r\n   AddDefaultCharset UTF-8\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">To the following:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&lt;Directory \/usr\/share\/phpMyAdmin\/&gt;\r\n   AddDefaultCharset UTF-8\r\n   Options Indexes FollowSymLinks MultiViews\r\n   DirectoryIndex index.php\r\n   AllowOverride all\r\n   Require all granted\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">Restart the <strong>httpd<\/strong> service:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&lt;Directory \/usr\/share\/phpMyAdmin\/&gt;\r\nsystemctl restart httpd\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When I tried to log in to phpMyAdmin using Apache 2.4 I received a 403 error, in the logs the following message: client denied by server configuration: \/usr\/share\/phpMyAdmin\/ The reason is that the configuration for Apache version 2.2 &nbsp; Solution: Open the configuration file: &nbsp; And we change this part: &nbsp; To the following: &nbsp; &hellip; <a href=\"https:\/\/artem.services\/?p=1275&#038;lang=en\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c<span class=\"screen-reader-text\"> &quot;FIX ERROR &#8212; phpMyAdmin+Apache 2.4: client denied by server configuration: \/usr\/share\/phpMyAdmin\/&quot;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[357],"tags":[991,993,995,493,361,365,499,997],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1275"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1275"}],"version-history":[{"count":2,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1275\/revisions"}],"predecessor-version":[{"id":1279,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1275\/revisions\/1279"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}