:2005-03-08
というわけで試行錯誤。Googleさまさまです。
——————————
http://kasano.homelinux.net/web_server/php_mysql.php
以下抜粋
# apt-get update
# apt-get install MySQL-server MySQL-client php
# apt-get install php-mysql php-apache2
このまま apache2 を再起動すると、失敗しました。
(apache1.3用にシンボリックリンクのリンクされているためです。apache1.3ではエラーが発生しないと思います。)
# /etc/rc.d/init.d/apache2 restart
httpdを停止中: [OK]
httpdを起動中: [Sat Dec 25 11:10:53 2004] [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
そこで、
# del /etc/alternatives/apache2
/etc/alternatives/apache2@
really remove them? [yiN] y
ok, removed….
# ln -s /usr/sbin/apache2.prefork* /etc/alternatives/apache2
# /etc/rc.d/init.d/apache2 start
httpdを起動中: [OK]
#
——————————
以上でちゃんと動くように!そんでもってphpも認識されました。


