Apache 2.2.6_1 のインストール


Apache portupgrade error 2.2.16に更新できない 20100916

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]

/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

blackcube で、APR Mysql にチェックを追加


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

# cd /usr/ports/www/apache22

# make

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

itworks.jpg

/usr/local/etc/apache22/httpd.confの設定

# 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 の ローテーション

/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 認証

% 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>

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS