LoginSignup
6

More than 5 years have passed since last update.

PHP5.6(CentOS7x64)にphpMyAdminをインストールする

Posted at

前提:LAMPが構築されていること。

PHPのバージョンを確認する。

php -v

PHP 5.6.25 (cli) (built: Aug 31 2016 19:17:57)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans

この環境ではバージョンが5.6なので、下記のコマンドを実行する。

yum install -y --enablerepo=remi,remi-php56 phpMyAdmin

Apacheのバージョンを確認する。

httpd -v

Server version: Apache/2.4.6 (CentOS)
Server built:   Jul 18 2016 15:30:14

この環境ではバージョンが2.4である。

設定ファイルを編集する。

vi /etc/httpd/conf.d/phpMyAdmin.conf

<IfModule mod_authz_core.c>
  # Apache 2.4
  # Require local
  Require all granted
</IfModule>

Apacheを再起動する。

systemctl restart httpd

http://サーバのIPアドレス/phpMyAdmin
にアクセスする。ログイン画面が表示されたら成功。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
6