(改×2)Webサーバの構築(初級)

1.apacheのダウンロード

#ftp ftp://ftp.apache.jp/pub/net/apache/dist/httpd/
>get httpd-2.2.0.tar.gz


2.apacheのインストール

#tar xvf httpd-2.0.55.tar
#cd httpd-2.0.55
#./configure --prefix=/usr/local/apache2
#make
#make install


3.apacheの起動

#/usr/local/apache2/bin/apachectl start


参考:http://httpd.apache.org/docs/2.2/ja/install.html


→できた〜〜〜〜!!
 ただし、起動するときにエラーが、、、


エラー内容は以下の通り。


httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName


意味:正確にドメインネームを決めることができませんでした。現在サーバネームのために、127.0.0.1を使っています。


4.エラーを直す。

#emacs /usr/local/apache2/conf

「#ServerName www.example.com:80」
→「SeverName ほげほげ:80」