2014年5月13日火曜日

phpadminインストール メモ linux

■phpadminインストール
cd /root/src
wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/4.2.0/phpMyAdmin-4.2.0-all-languages.tar.gz/download#
tar xvfz download
mv phpMyAdmin-4.2.0-all-languages /etc/httpd/htdocs/phpmyadmin
cp /etc/httpd/htdocs/phpmyadmin/config.sample.inc.php /etc/httpd/htdocs/phpmyadmin/config.inc.php
chmod 660 /etc/httpd/htdocs/phpmyadmin/config.inc.php
vi /etc/httpd/htdocs/phpmyadmin/config.inc.php

$cfg['blowfish_secret'] = 'denen';
$cfg['Lang'] = 'ja-utf-8';

Basic認証設置
/etc/httpd/bin/htpasswd -c /etc/httpd/htdocs/phpmyadmin/.htpasswd xxxxx  ←xxxはユーザ名
パスワード: xxxxxxx

vi /etc/httpd/htdocs/phpmyadmin/.htaccess

AuthType Basic
AuthName "Please Enter Your Password"
AuthUserFile /etc/httpd/htdocs/phpmyadmin/.htpasswd
Require valid-user

0 件のコメント:

コメントを投稿