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

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

1. 概要

 かつて、ウェブサーバでは、apache がもっともシェアが大きいものでした。  FreeBSD に限らず「Netcraft」の調査によれば、2015年10月、apache の使用率は 34.96% で 1位だったのです。  2016年6月に Apache 37%、IIS 36% と逼迫した状態になりました。  以降、逆転、再逆転の時期がありました。  2017年7月に Apache 27%、IIS 41% 以降は、差が縮まることはあるものの IIS の優勢は変わらず。  2018年5月現在で Apache 22.15%、IIS 22.15%。nginx が 20.64% で nginx にも追い越されかねない状態です。  わたしには IIS の良さは理解できていないのですが・・・。  nginx はまださわっていません。  Apache には長年安定した運用の実績があるので、未だに Apache を使用しています。  以下、apache の設定方法および apache で使用できるツールの設定について記述していきます。  apache でメジャーとなっているバージョンに 1.3、2.0、2.2、2.4 と 4つの系列があります。  ここでは 2.4 の設定方法ついて説明します。  ログローテーションに関しては「メンテナンス・トラブルシュート - ログ」の項をご参照ください。

2. ports

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

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

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

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

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

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

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

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

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

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

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

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


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(アースカー)
Amazonギフトカード
神戸養蜂場
ネットオークションの相場、統計、価格比較といえばオークファン