[ ホーム | 一覧 | 検索 | 最終更新 | ヘルプ ] [ 新規 ]

KAWANO's PukiWiki Plus! - Install Log/CentOS6/phpmyadmin のバックアップ(No.1)

AND OR
  • バックアップ一覧
  • 差分 を表示
  • 現在との差分 を表示
  • 現在との差分 - Visual を表示
  • ソース を表示
  • Install Log/CentOS6/phpmyadmin へ行く。
    • 1 (2014-03-21 (金) 20:33:40)

phpMyAdminの導入

▲ ▼

phpMyAdminのインストール

MySQLをWebからGUIベースで管理できるツールである、phpMyAdminをイントールする。

今回は、Remiリポジトリから最新バージョンのものを導入する。

# yum --enablerepo=remi,epel install phpmyadmin
  • 本体は、/usr/share/phpmyadmin以下にインストールされる。
  • Apacheでの設定は、/etc/httpd/conf.d/phpmyadmin.confにある。
▲ ▼

phpMyAdminの設定

まず、phpMyAdminの内部で使用するパスフレーズを作る。

# yum -y install expect
# mkpasswd -l 46  ←ランダムな46桁の文字列を作成する

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

# cp /usr/share/phpmyadmin/config.sample.inc.php /usr/share/phpmyadmin/config.inc.php
# vi /usr/share/phpmyadmin/config.inc.php

設定内容は、だいたい次のような感じ。

... 
$cfg['blowfish_secret'] = '<mkpasswdコマンドで生成した文字列>';
...
$cfg['Servers'][$i]['auth_type']     = 'cookie'; ← 認証にcookieを使用
...
$cfg['Lang']     = 'ja-utf-8'; ← 追加(日本語化)

次に、Apacheのほうも設定する。

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

管理するコンピュータがあるネットワークを追加する。

...
<Directory /usr/share/phpMyAdmin>
...
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1
  Allow from ::1
  Allow from 192.168.1.0/24 ←追加
...
</Directory>

Apacheを再起動する。

# service httpd restart
▲ ▼

phpMyAdminの利用

ブラウザから、「httpd://<サーバ名>/phpMyAdmin/」または「httpd://<サーバ名>/phpmyadmin/」にアクセスすれば、 phpMyAdminの画面が表示される。

データベース管理者のユーザ名とパスワードで利用できる。

▲ ▼

参考

  • http://centossrv.com/phpmyadmin.shtml
  • http://www.server-world.info/query?os=CentOS_6&p=mysql&f=2
  • http://shim0mura.hatenadiary.jp/entry/20111029/1319904877
  • http://makizou.com/2813/

メニュー

  • トップ
  • 授業
  • PukiWiki Log
  • Install Log
  • 道具箱
  • セキュリティ情報
  • RSSアンテナ

大学関係リンク

  • Webメール
  • 健康システム学科
  • 情報メディアセンター
  • 兵庫大学

今日の5件
  • FrontPage(2241)
  • Lecture/InfoDesignB2004/4th(9)
  • Lecture/InfoDesignB2004/6th(8)
  • Lecture/InfoDesignB2004/11th/exercise1(7)
  • Lecture/JouhouC2006/9th(6)
最新の5件
2016-04-08
  • Lecture/timetable_2016
  • Lecture
  • FrontPage
2015-09-30
  • Lecture/timetable_2015
2015-04-04
  • MenuBar

total: 1863
today: 3
yesterday: 1
now: 28


リロード   差分   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS
http%3A%2F%2Fhs-www.hyogo-dai.ac.jp%2F~kawano%2F%3FInstall%252520Log%25252FCentOS6%25252Fphpmyadmin
Founded by Minoru Kawano.
Powered by PukiWiki Plus! 1.4.7plus-u2-i18n. HTML convert time to 1.905 sec.
Valid XHTML 1.1