phpmyadmin installation

No matching DirectoryIndex (index.html) found phpMyadmin


DirectoryIndex index.html index.php

/etc/httpd/conf.d/

add this line in phpMyadmin.conf

here is example

<Directory /usr/share/phpMyAdmin/>
   AddDefaultCharset UTF-8
DirectoryIndex index.html index.php
   <IfModule mod_authz_core.c>


permission denied

change localhost to public IP in phpmyadmin.conf

<IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip 219.91.251.164
       Require ip ::1
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 219.91.251.164
     Allow from ::1
   </IfModule>


If you want to be able to access your phpMyAdmin installation from any location add Require all granted before the Require ip line.

<Directory /usr/share/phpMyAdmin/>
   AddDefaultCharset UTF-8

   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       #Require ip 127.0.0.1
       #Require ip ::1
       Require all granted
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 127.0.0.1
     Allow from ::1
   </IfModule>
</Directory>
---------------------------------------------------------------

cd /etc/httpd/conf.d/phpMyadmin.conf

<Directory /usr/share/phpMyAdmin/>
   Order Deny,Allow
   Deny from All



<Directory /usr/share/phpMyAdmin/>
   Order Deny,Allow
   Allow from All




Comments

Popular posts from this blog

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7

awstats installation