phpMyAdmin と Apache2 を入れてみた。
まずはMySQLのパスワードを変えよう。
mysqladmin -u root password new_password
http://www.phpmyadmin.net/home_page/index.phpから
phpMyAdmin-2.8.0.3.tar.gz をダウンロードする。
解凍してApacheのドキュメントルートに置く。
動かない。
PHP5とApacheをつなぐモジュールが入っていないことに気付く。
さらにApacheが1.3系なことに気付く。
Apache2にバージョンアップだ。
# apt-get remove apache
# apt-get install httpd
Webminからも使えるようにしたいので設定を変更する。
Webminにログインして以下適当に変える。
/etc/apache2
/usr/sbin/apache2
/usr/sbin/apache2ctl
/etc/rc.d/init.d/apache2 start
/etc/rc.d/init.d/apache2 stop
/etc/rc.d/init.d/apache2 stop
Apache起動
# /etc/rc.d/init.d/apache2 start
httpdを起動中: [Sun Apr 16 13:34:30 2006] [crit] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
Pre-configuration failed
[失敗]
なぜ…。
http://yaguma.com/wordpress/?p=62を参考にApacheの起動プロセスを変更する。
# update-alternatives --config apache2There are 4 alternatives which provide `apache2'.
Selection Alternative