Apacheの導入

sargeにデフォルトで入っているのはApache2。Apache1系で運用したいので入れ替える。

$su
#/etc/init.d/apache2 stop
#apt-get remove apache2
#apt-get install apache

手順は以上。インストール後に設定を行う。

#dpkg-reconfigure apache

迷ったらデフォルト値を選択する。

この状態でも、設定が前のサーバとかなりかけ離れているので、httpd.confを直接編集する。

#vi /etc/apache/httpd.conf

終わったら、apacheの再起動。