桜ヶ丘日記

技術メモとかとか

さくらVPSでphpmyadmin入れようず

*参考
http://akabeko.me/blog/2010/12/%E3%81%95%E3%81%8F%E3%82%89%E3%81%AEvps-%E3%82%92%E4%BD%BF%E3%81%84%E3%81%AF%E3%81%98%E3%82%81%E3%82%8B-9-phpmyadmin-%E5%B0%8E%E5%85%A5%E3%81%A8-redmine-%E6%9B%B4%E6%96%B0/

*じゅんび
$ sudo yum -y install php-mcrypt

*さぁインストール
$ cd ~/src
$ wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.5.2.2/phpMyAdmin-3.5.2.2-all-languages.tar.gz?r=http%3A%2F%2Fwww.phpmyadmin.net%2Fhome_page%2Fdownloads.php&ts=1347435782&use_mirror=jaist
$ tar xvzf phpMyAdmin-3.5.2.2-all-languages.tar.gz
$ mv phpMyAdmin-3.5.2.2-all-languages /var/www/html/phpmyadmin && cd /var/www/html/phpmyadmin
$ cat > .htaccess
order allow,deny
allow from all
Authname "phpmyadmin"
Authtype Basic
AuthUserFile /var/www/htpasswd/sakuragaoka
require valid-user
$ cp config.sample.inc.php config.inc.php