FreeBSD 7.2 install (1)

  1. 7.2のbootonly.isoを取ってくる
  2. pkg_addとportinstallあたりを入れる
  3. 以下のサイトのportsnapを参考にportsを展開
    http://www.jp.freebsd.org/www.FreeBSD.org/doc/ja_JP.eucJP/books/handbook/ports-using.html
  4. 本当はここでportupgrade(portinstallに必要)を入れてたのを忘れてて、make install cleanしようとしたらportsになくて困る。
  5. 気づいたので、下を参考にApacheを入れる。
    portintall /usr/ports/www/apache22
    http://www.ksknet.net/freebsd/freebsd_apache.html
  6. hostのドメインどこだって怒られたので、どこか怒られた場所に書いた。
  7. apachectl start|stop|restart
  8. /etc/inetd.confのftpdの部分のコメントアウトを外す。
  9. httpd.confのDocumentRootを変更/homeに。

apacheを自動起動したいので、/usr/local/etc/rc.d/apache.shを作成。
apache22があるけど、起動しないので以下のサイトを参考にした。
http://www.ask.ne.jp/~suzuki/bsd-http.html
http://www2h.biglobe.ne.jp/~hnakamur/technolab/freebsd/other/apache/apache_ne3.htm

#!/bin/sh
#
apache=/usr/local/apache/bin/httpd
apachectl=/usr/local/apache/bin/apachectl
if [ -f $apache ]; then
$apachectl start
echo -n ' Apache Server Started '
fi
Leave a comment

0 Comments.

Leave a Reply


[ Ctrl + Enter ]