FreeBSD 11.1 RELEASE - apache24 - 概要・インストール

 クラウディア
1. 概要
2. ports
3. インストール時のメッセージ

1. 概要

 かつて、ウェブサーバでは、apache がもっともシェアが大きいものでした。  FreeBSD に限らず「Netcraft」の調査によれば、2015年10月、apache の使用率は 34.96% で 1位だったのです。  2017年5月現在で 22.69% で IIS が 44.71% と逆転されて以降、差が開く一方のようです。わたしには IIS の良さは理解できていないのですが・・・。  以下、apache の設定方法および apache で使用できるツールの設定について記述していきます。  apache でメジャーとなっているバージョンに 1.3、2.0、2.2、2.4 と 4つの系列があります。  ここでは 2.4 の設定方法ついて説明します。  ログローテーションに関しては「メンテナンス・トラブルシュート - ログ」の項をご参照ください。

2. ports

 2018年5月7日時点のバージョンは apache24-2.4.33_1 でした。  apache にはオプションが大量にありますので、まずは

cd /usr/ports/www/apache24
make config
 でオプションを確認します。  25行の端末であれば、1ページに 11% しか表示されません。  あくまでわたしの設定になりますが、1ページずつ掲載しておきます。  1/10ページ。特に設定は変更していません。
「/usr/ports/www/apache24」「make config」「1/10」

 2/10ページ。特に設定は変更していません。

「/usr/ports/www/apache24」「make config」「2/10」

 3/10ページ。特に設定は変更していません。

「/usr/ports/www/apache24」「make config」「3/10」

 4/10ページ。特に設定は変更していません。

「/usr/ports/www/apache24」「make config」「5/10」

 5/10ページ。特に設定は変更していません。

「/usr/ports/www/apache24」「make config」「5/10」

 6/10ページ。特に設定は変更していません。

「/usr/ports/www/apache24」「make config」「6/10」

 7/10ページ。特に設定は変更していません。

「/usr/ports/www/apache24」「make config」「7/10」

 8/10ページ。特に設定は変更していません。

「/usr/ports/www/apache24」「make config」「8/10」

 9/10ページ。特に設定は変更していません。

「/usr/ports/www/apache24」「make config」「9/10」

 10/10ページ。特に設定は変更していません。

「/usr/ports/www/apache24」「make config」「10/10」

 10ページ目を少しいじって、スレッドを動作させるようにするとレスポンスが速くなるらしいのですが、まだ設定してみていません。
 今のところチェックはデフォルトのままいじっていません。

 確認が終わったら、インストールします。


make
make install

3. インストール時のメッセージ

 「apache24-2.4.33_1」のインストール時のメッセージを掲載しておきます。

Installing apache24-2.4.33_1...
===> Creating groups.
Using existing group 'www'.
===> Creating users
Using existing user 'www'.
To run apache www server from startup, add apache24_enable="yes"
in your /etc/rc.conf. Extra options can be found in startup script.

Your hostname must be resolvable using at least 1 mechanism in
/etc/nsswitch.conf typically DNS or /etc/hosts or apache might
have issues starting depending on the modules you are using.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

- apache24 default build changed from static MPM to modular MPM
- more modules are now enabled per default in the port
- icons and error pages moved from WWWDIR to DATADIR

   If build with modular MPM and no MPM is activated in
   httpd.conf, then mpm_prefork will be activated as default
   MPM in etc/apache24/modules.d to keep compatibility with
   existing php/perl/python modules!

Please compare the existing httpd.conf with httpd.conf.sample
and merge missing modules/instructions into httpd.conf!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

===> SECURITY REPORT:
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/libexec/apache24/mod_cgid.so

      This port has installed the following startup scripts which may cause
      these network services to be started at boot time.
/usr/local/etc/rc.d/apache24
/usr/local/etc/rc.d/htcacheclean

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage:
http://httpd.apache.org/
earthcar(アースカー)
神戸養蜂場
マイニングベース