phpmyadmin

yum –enablerepo=epel install -y phpMyAdmin php-mysql php-mcrypt

/etc/httpd/conf.d/phpMyAdmin.conf でlocalhost以外のIP訪問時修正

   <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
#AllowOverride all←ここ
   </IfModule>
</Directory>

<Directory /usr/share/phpMyAdmin/setup/>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip 127.0.0.1
       Require ip ::1
     </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
#AllowOverride all←ここ
   </IfModule>
</Directory>

Add a Comment

您的电子邮箱地址不会被公开。 必填项已用*标注