Vine3.2でapache2+PHP5を使うときぃぃぃぃぃ!

なんとなくPHPを弄ろうかなとapache2とphp5をとりあえずインストール.

# service apache2 start
httpdを起動中: [Fri Jun 15 21:25:15 2007] [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

なんてエラーが出て起動できない.

なんか納得いかないので調査.

# ls -la /usr/sbin/apache*
 lrwxrwxrwx    1 root     root           25 Aug 30  2006 /usr/sbin/apache2 -> /etc/alternatives/apache2*
 -rwxr-xr-x    1 root     root       415882 Aug 17  2006 /usr/sbin/apache2.perchild*
 -rwxr-xr-x    1 root     root       398248 Aug 17  2006 /usr/sbin/apache2.prefork*
 -rwxr-xr-x    1 root     root       405219 Aug 17  2006 /usr/sbin/apache2.threadpool*
 -rwxr-xr-x    1 root     root       407360 Aug 17  2006 /usr/sbin/apache2.worker*
 -rwxr-xr-x    1 root     root         3089 Aug 17  2006 /usr/sbin/apache2ctl*

# rpm -qa |grep alternatives
alternatives-0.1.10.18-0vl1

# rpm -ql alternatives
/etc/alternatives
/sbin/update-alternatives
/usr/share/doc/alternatives-0.1.10.18
/usr/share/doc/alternatives-0.1.10.18/COPYING
/usr/share/man/ja/man8/update-alternatives.8.gz
/usr/share/man/man8/update-alternatives.8.gz
/var/lib/rpm/alternatives
/var/lib/rpm/enoent

# /sbin/update-alternatives --config apache2

これで/usr/sbin/apache2.preforkを選ぶ.

# service apache2 start
httpdを起動中:[OK]

なんだか面倒だな.でもvine4.xではこんなことがなかった気がする.