phpmyadminをremi-php56でインストール

 
[root@falcon21 ~]# yum install --disablerepo=* --enablerepo=remi,remi-php56 phpmyadmin
インストール:
  phpMyAdmin.noarch 0:4.8.5-1.el7.remi
 
依存性関連をインストールしました:
  composer.noarch 0:1.8.4-1.el7.remi
  php-PsrLog.noarch 0:1.1.0-1.el7.remi
  php-composer-ca-bundle.noarch 0:1.1.4-1.el7.remi
  php-composer-semver.noarch 0:1.4.2-2.el7.remi
  php-composer-spdx-licenses.noarch 0:1.5.0-1.el7.remi
  php-composer-xdebug-handler.noarch 0:1.3.2-1.el7.remi
  php-gmp.x86_64 0:5.6.40-1.el7.remi
  php-google-recaptcha.noarch 0:1.2.1-1.el7.remi
  php-jsonlint.noarch 0:1.7.1-1.el7.remi
  php-justinrainbow-json-schema5.noarch 0:5.2.8-1.el7.remi
  php-paragonie-random-compat.noarch 0:2.0.12-1.el7.remi
  php-password-compat.noarch 0:1.0.4-1.el7.remi
  php-phpmyadmin-motranslator.noarch 0:4.0-1.el7.remi
  php-phpmyadmin-shapefile.noarch 0:2.1-1.el7.remi
  php-phpmyadmin-sql-parser.noarch 0:4.3.1-1.el7.remi
  php-phpseclib.noarch 0:2.0.14-1.el7.remi
  php-psr-container.noarch 0:1.0.0-1.el7.remi
  php-recode.x86_64 0:5.6.40-1.el7.remi
  php-seld-phar-utils.noarch 0:1.0.1-2.el7.remi
  php-symfony-browser-kit.noarch 0:2.8.49-1.el7.remi
  php-symfony-class-loader.noarch 0:2.8.49-1.el7.remi
  php-symfony-common.noarch 0:2.8.49-1.el7.remi
  php-symfony-config.noarch 0:2.8.49-1.el7.remi
  php-symfony-console.noarch 0:2.8.49-1.el7.remi
  php-symfony-css-selector.noarch 0:2.8.49-1.el7.remi
  php-symfony-debug.noarch 0:2.8.49-1.el7.remi
  php-symfony-dependency-injection.noarch 0:2.8.49-1.el7.remi
  php-symfony-dom-crawler.noarch 0:2.8.49-1.el7.remi
  php-symfony-event-dispatcher.noarch 0:2.8.49-1.el7.remi
  php-symfony-expression-language.noarch 0:2.8.49-1.el7.remi
  php-symfony-filesystem.noarch 0:2.8.49-1.el7.remi
  php-symfony-finder.noarch 0:2.8.49-1.el7.remi
  php-symfony-http-foundation.noarch 0:2.8.49-1.el7.remi
  php-symfony-http-kernel.noarch 0:2.8.49-1.el7.remi
  php-symfony-polyfill.noarch 0:1.10.0-1.el7.remi
  php-symfony-process.noarch 0:2.8.49-1.el7.remi
  php-symfony-var-dumper.noarch 0:2.8.49-1.el7.remi
  php-symfony-yaml.noarch 0:2.8.49-1.el7.remi
  php-symfony3-common.noarch 0:3.4.22-1.el7.remi
  php-symfony3-translation.noarch 0:3.4.22-1.el7.remi
  php-twig.x86_64 0:1.37.1-1.el7.remi.5.6
  php-twig-extensions.noarch 0:1.5.4-1.el7.remi
 
完了しました!
New leaves:
  phpMyAdmin.noarch
 
----------------------------------
[root@falcon21 ~]# vi /etc/httpd/conf.d/phpMyAdmin.conf
 
# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL
 
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
 
<Directory /usr/share/phpMyAdmin/>
   AddDefaultCharset UTF-8
 
   <IfModule mod_authz_core.c>
     # Apache 2.4
     #Require local
        Require ip 127.0.0.1 192.168.2.0/24 192.168.0.0/24
   </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>
 
<Directory /usr/share/phpMyAdmin/setup/>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     Require local
   </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>
 
# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>
 
<Directory /usr/share/phpMyAdmin/setup/lib/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>
 
<Directory /usr/share/phpMyAdmin/setup/frames/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>
 
# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc.  This may break your mod_security implementation.
#
#<IfModule mod_security.c>
#    <Directory /usr/share/phpMyAdmin/>
#        SecRuleInheritance Off
#    </Directory>
#</IfModule>
 
-----------------------------
 
httpd へ反映させる
[root@falcon21 ~]# systemctl restart httpd
 
 
http://falcon21.space//phpmyadmin/ へアクセス
投票数:2 平均点:10.00

 
Back to Top