CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Apache24 [#q97dc878]
 # portinstall www/apache24

 ===> Installing rc.d startup script(s)
 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 typically DNS or /etc/hosts or apache might
 have issues starting depending on the modules you are using.
 ===> Correct pkg-plist sequence to create group(s) and user(s)
 ===>   Compressing manual pages for apache24-2.4.4_1
 ===>   Registering installation for apache24-2.4.4_1
 ===> 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/
 ===>  Cleaning for apache24-2.4.4_1

Apacheの起動時のhostnameの監査が厳しくなった。設定が不備だと、エラー吐きます。
 root@G7:/root # apachectl start
 AH00557: httpd: apr_sockaddr_info_get() failed for G7.kuji-clinic.info
 AH00558: httpd: Could not reliably determine the server's fully qualified domain name,
  using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
 [Thu Jun 06 17:01:48.238206 2013] [core:warn] [pid 83447] (2)No such file or directory:
  AH00075: Failed to enable the 'httpready' Accept Filter
 [Thu Jun 06 17:01:48.238441 2013] [core:warn] [pid 83447] (2)No such file or directory:
  AH00075: Failed to enable the 'httpready' Accept Filter
 
 root@G7:/root # apachectl start
 AH00557: httpd: apr_sockaddr_info_get() failed for G7.kuji-clinic.info
 AH00558: httpd: Could not reliably determine the server's fully qualified domain name,
  using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
 httpd (pid 83448) already running

**いつものw Failed to enable the 'httpready' Accept Filter 頂きますので [#n46d0e64]
 echo 'accf_http_load="YES"' >> /etc/boot/loader.conf

 # kldload accf_http.ko
**httpd: apr_sockaddr_info_get() failed for G7.kuji-clinic.info [#o50af7fe]
 AH00558: httpd: Could not reliably determine the server's fully qualified domain name,
  using 127.0.0.1. Set the 'ServerName' directive globally to suppress this
については、DNSのゾーンファイルkuji-clinic.info.dbへ、
 G7 IN CNAME k156.kuji-clinic.info.
を加えて、
 rndc reload


*Apache 2.2.6_1 のインストール [#xe1b8e63]

*Apache portupgrade error 2.2.16に更新できない 20100916 [#df0a88d1]

 portupgrade Apache-2.2.1* 
 
 Configuring Apache Portable Runtime library ...
 
 checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix,
  a build directory, or an apr-config file.
 ===> Script "configure" failed unexpectedly.
 Please report the problem to apache@FreeBSD.org [maintainer] and attach the
 "/usr/ports/www/apache22/work/httpd-2.2.15/config.log" including the output
 of the failure of your make command. Also, it might be a good idea to provide
 an overview of all packages installed on your system (e.g. an `ls
 /var/db/pkg`).
 *** Error code 1 
 
 Stop in /usr/ports/www/apache22.
 *** Error code 1
 
 Stop in /usr/ports/www/apache22.


/usr/ports/UPDATINGには、次のような記述があった。


20100518:
AFFECTS: users of devel/apr0, devel/apr1, www/apache20, www/apache22
AUTHOR: pgollucci@FreeBSD.org

devel/apr port has been renamed to devel/apr1.

WITH_APR_FROM_PORTS=yes for www/apache22 has been dissolved and may be
removed from your configuration files; devel/apr1 is always used now.

Please manually delete apache-2.\* if installed _before_ updating using
either portmaster or portupgrade:

pkg_delete -f apache-2.\*

Then, if you use portmaster:

portmaster -o devel/apr1 devel/apr

If you use portupgrade:

portupgrade -f -o devel/apr1 devel/apr

Finally, reinstall Apache port if you deleted it earlier and update ports as
usual (`XX' below is either 20 or 22):

portinstall www/apacheXX

 # portupgrade -f devel/apr1
 # portinstall www/apache22
で、OK!

http://www.sanshouo.com/mt/2010/05/portupgradeapache-2215-9.html


*Apache 起動時の[Warn] [#jbb0acaf]

/etc/hosts と /usr/local/etc/Apache22/httpd.conf にホスト名をかけ! で下記は消える。
 hotshot# apachectl start
 httpd: apr_sockaddr_info_get() failed for hotshot
 httpd: Could not reliably determine the server's fully qualified domain name,  using 127.0.0.1 for ServerName
 [Wed Feb 08 11:26:04 2012] [warn] (2)No such file or directory: Failed to  enable the 'httpready' Accept Filter
 hotshot# apachectl start
 httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
 [Wed Feb 08 11:32:23 2012] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
 hotshot#

Apache の起動時に、
 [Thu Aug 27 05:09:52 2009] [warn] (2)No such file or directory: Failed to enable the 'dataready' Accept Filter
といわれる。これの対処として、/boot/loader.conf に
 accf_http_load="YES" 
を書いて、
 guard:root {102} % kldstat
 Id Refs Address    Size     Name
  1    8 0xc0400000 7a08f4   kernel
  2    1 0xc0ba1000 2364     accf_http.ko
  3    1 0xc0ba4000 5c304    acpi.ko
  4    1 0xc29b4000 19000    linux.ko
と、accf_http.ko を起動時にロードしているのだが、それをしていても、No such file or directoryと言われるのは、何故???
http://www.skymerica.com/blog/yotsumoto/arch/2007/06/11/000799.html

 

----
*portupgrade apache [#ea68dc53]
blackcube で、APR Mysql にチェックを追加

----


http://httpd.apache.org/docs/2.2/ja/

# cd /usr/ports/www/apache22
# make
#ref(apache.jpg)
# make install

 Installing configuration files
 mkdir /usr/local/etc/apache22
 mkdir /usr/local/etc/apache22/extra
 mkdir /usr/local/share/examples/apache22
 mkdir /usr/local/share/examples/apache22/extra
 Installing HTML documents
 mkdir /usr/local/www/apache22
 mkdir /usr/local/www/apache22/data
 Installing error documents
 mkdir /usr/local/www/apache22/error
 Installing icons
 mkdir /usr/local/www/apache22/icons
 Installing CGIs
 mkdir /usr/local/www/apache22/cgi-bin
 Installing header files
 mkdir /usr/local/include/apache22
 Installing build system files
 mkdir /usr/local/share/apache22
 mkdir /usr/local/share/apache22/build
 Installing man pages and online manual
 mkdir /usr/local/share/doc/apache22
 To run apache www server from startup, add apache22_enable="YES"
 in your /etc/rc.conf. Extra options can be found in startup script.
 ===> Installing rc.d startup script(s)
 ===>   Compressing manual pages for apache-2.2.6_1
 ===>   Running ldconfig
 /sbin/ldconfig -m /usr/local/lib
 ===>   Registering installation for apache-2.2.6_1
 ===> 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/lib/libapr-1.so.2
 
      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/apache22
 /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/

 #vi /etc/rc.conf
 #apache22_enable="YES"

 # apachectl start
 [Mon Sep 24 06:32:15 2007] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
 # apachectl start
 httpd (pid 82101) already running

/boot/loder.conf
 accf_http_load="YES"
http://www.skymerica.com/blog/yotsumoto/arch/2007/06/11/000799.html

#ref(itworks.jpg)
**/usr/local/etc/apache22/httpd.confの設定 [#uafb0fa3]
 # cp httpd.conf httpd.conf-dist
 
 ServerAdmin webmaster@thousand-winds.jp
 ServerName www.thousand-winds.jp:80
 
 # User home directories
 Include etc/apache22/extra/httpd-userdir.conf  <--uncomment

 
 # apachectl restart

**log の ローテーション [#k9566e30]
 /etc/newsyslog.conf
 /var/log/httpd-access.log		644  12    *    @01T05 Z  /var/run/httpd.pid
 /var/log/httpd-error.log		644  12    *    @01T06 Z  /var/run/httpd.pid

**Basic 認証 [#i34acb1d]
 % htpasswd -c /usr/home/tfc/.htpasswd tfc
 New password:
 Re-type new password:
 Adding password for user tfc

vi /usr/local/etc/apache22/extra/httpd-userdir.conf
 <Directory "/home/tfc/public_html/">
 AuthUserFile    /home/tfc/.htpasswd
 AuthGroupFile   /dev/null
 AuthName        "Please Enter Your Password"
 AuthType        Basic
 Require valid-user
 </Directory>
----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS