Apache on FreeBSD
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Apache24 [#q97dc878]
# portinstall www/apache24
===> Installing rc.d startup script(s)
To run apache www server from startup, add apache24_enab...
in your /etc/rc.conf. Extra options can be found in star...
Your hostname must be resolvable using at least 1 mechan...
/etc/nsswitch typically DNS or /etc/hosts or apache might
have issues starting depending on the modules you are us...
===> Correct pkg-plist sequence to create group(s) and u...
===> 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 ...
servers and may therefore pose a remote security r...
/usr/local/libexec/apache24/mod_cgid.so
This port has installed the following startup scri...
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 the...
risk to the system. FreeBSD makes no guarantee abo...
ports included in the Ports Collection. Please typ...
to deinstall the port if this is a concern.
For more information, and contact details about th...
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.ku...
AH00558: httpd: Could not reliably determine the server'...
using 127.0.0.1. Set the 'ServerName' directive globall...
[Thu Jun 06 17:01:48.238206 2013] [core:warn] [pid 83447...
AH00075: Failed to enable the 'httpready' Accept Filter
[Thu Jun 06 17:01:48.238441 2013] [core:warn] [pid 83447...
AH00075: Failed to enable the 'httpready' Accept Filter
root@G7:/root # apachectl start
AH00557: httpd: apr_sockaddr_info_get() failed for G7.ku...
AH00558: httpd: Could not reliably determine the server'...
using 127.0.0.1. Set the 'ServerName' directive globall...
httpd (pid 83448) already running
**いつものw Failed to enable the 'httpready' Accept Fil...
echo 'accf_http_load="YES"' >> /etc/boot/loader.conf
# kldload accf_http.ko
**httpd: apr_sockaddr_info_get() failed for G7.kuji-clini...
AH00558: httpd: Could not reliably determine the server'...
using 127.0.0.1. Set the 'ServerName' directive globall...
については、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 [...
portupgrade Apache-2.2.1*
Configuring Apache Portable Runtime library ...
checking for APR... configure: error: the --with-apr par...
a build directory, or an apr-config file.
===> Script "configure" failed unexpectedly.
Please report the problem to apache@FreeBSD.org [maintai...
"/usr/ports/www/apache22/work/httpd-2.2.15/config.log" i...
of the failure of your make command. Also, it might be a...
an overview of all packages installed on your system (e....
/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, w...
AUTHOR: pgollucci@FreeBSD.org
devel/apr port has been renamed to devel/apr1.
WITH_APR_FROM_PORTS=yes for www/apache22 has been dissolv...
removed from your configuration files; devel/apr1 is alwa...
Please manually delete apache-2.\* if installed _before_ ...
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 ...
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...
*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 q...
[Wed Feb 08 11:26:04 2012] [warn] (2)No such file or dir...
hotshot# apachectl start
httpd: Could not reliably determine the server's fully q...
[Wed Feb 08 11:32:23 2012] [warn] (2)No such file or dir...
hotshot#
Apache の起動時に、
[Thu Aug 27 05:09:52 2009] [warn] (2)No such file or dir...
といわれる。これの対処として、/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 を起動時にロードしているのだが、それをし...
http://www.skymerica.com/blog/yotsumoto/arch/2007/06/11/0...
----
*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_enab...
in your /etc/rc.conf. Extra options can be found in star...
===> 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 m...
servers and may therefore pose a remote security ri...
/usr/local/lib/libapr-1.so.2
This port has installed the following startup scrip...
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 ther...
risk to the system. FreeBSD makes no guarantee abou...
ports included in the Ports Collection. Please type...
to deinstall the port if this is a concern.
For more information, and contact details about the...
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 dir...
# apachectl start
httpd (pid 82101) already running
/boot/loder.conf
accf_http_load="YES"
http://www.skymerica.com/blog/yotsumoto/arch/2007/06/11/0...
#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 <--uncomm...
# apachectl restart
**log の ローテーション [#k9566e30]
/etc/newsyslog.conf
/var/log/httpd-access.log 644 12 * @01T05 Z /va...
/var/log/httpd-error.log 644 12 * @01T06 Z /var...
**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([total|today|yesterday]);
終了行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Apache24 [#q97dc878]
# portinstall www/apache24
===> Installing rc.d startup script(s)
To run apache www server from startup, add apache24_enab...
in your /etc/rc.conf. Extra options can be found in star...
Your hostname must be resolvable using at least 1 mechan...
/etc/nsswitch typically DNS or /etc/hosts or apache might
have issues starting depending on the modules you are us...
===> Correct pkg-plist sequence to create group(s) and u...
===> 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 ...
servers and may therefore pose a remote security r...
/usr/local/libexec/apache24/mod_cgid.so
This port has installed the following startup scri...
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 the...
risk to the system. FreeBSD makes no guarantee abo...
ports included in the Ports Collection. Please typ...
to deinstall the port if this is a concern.
For more information, and contact details about th...
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.ku...
AH00558: httpd: Could not reliably determine the server'...
using 127.0.0.1. Set the 'ServerName' directive globall...
[Thu Jun 06 17:01:48.238206 2013] [core:warn] [pid 83447...
AH00075: Failed to enable the 'httpready' Accept Filter
[Thu Jun 06 17:01:48.238441 2013] [core:warn] [pid 83447...
AH00075: Failed to enable the 'httpready' Accept Filter
root@G7:/root # apachectl start
AH00557: httpd: apr_sockaddr_info_get() failed for G7.ku...
AH00558: httpd: Could not reliably determine the server'...
using 127.0.0.1. Set the 'ServerName' directive globall...
httpd (pid 83448) already running
**いつものw Failed to enable the 'httpready' Accept Fil...
echo 'accf_http_load="YES"' >> /etc/boot/loader.conf
# kldload accf_http.ko
**httpd: apr_sockaddr_info_get() failed for G7.kuji-clini...
AH00558: httpd: Could not reliably determine the server'...
using 127.0.0.1. Set the 'ServerName' directive globall...
については、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 [...
portupgrade Apache-2.2.1*
Configuring Apache Portable Runtime library ...
checking for APR... configure: error: the --with-apr par...
a build directory, or an apr-config file.
===> Script "configure" failed unexpectedly.
Please report the problem to apache@FreeBSD.org [maintai...
"/usr/ports/www/apache22/work/httpd-2.2.15/config.log" i...
of the failure of your make command. Also, it might be a...
an overview of all packages installed on your system (e....
/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, w...
AUTHOR: pgollucci@FreeBSD.org
devel/apr port has been renamed to devel/apr1.
WITH_APR_FROM_PORTS=yes for www/apache22 has been dissolv...
removed from your configuration files; devel/apr1 is alwa...
Please manually delete apache-2.\* if installed _before_ ...
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 ...
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...
*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 q...
[Wed Feb 08 11:26:04 2012] [warn] (2)No such file or dir...
hotshot# apachectl start
httpd: Could not reliably determine the server's fully q...
[Wed Feb 08 11:32:23 2012] [warn] (2)No such file or dir...
hotshot#
Apache の起動時に、
[Thu Aug 27 05:09:52 2009] [warn] (2)No such file or dir...
といわれる。これの対処として、/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 を起動時にロードしているのだが、それをし...
http://www.skymerica.com/blog/yotsumoto/arch/2007/06/11/0...
----
*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_enab...
in your /etc/rc.conf. Extra options can be found in star...
===> 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 m...
servers and may therefore pose a remote security ri...
/usr/local/lib/libapr-1.so.2
This port has installed the following startup scrip...
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 ther...
risk to the system. FreeBSD makes no guarantee abou...
ports included in the Ports Collection. Please type...
to deinstall the port if this is a concern.
For more information, and contact details about the...
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 dir...
# apachectl start
httpd (pid 82101) already running
/boot/loder.conf
accf_http_load="YES"
http://www.skymerica.com/blog/yotsumoto/arch/2007/06/11/0...
#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 <--uncomm...
# apachectl restart
**log の ローテーション [#k9566e30]
/etc/newsyslog.conf
/var/log/httpd-access.log 644 12 * @01T05 Z /va...
/var/log/httpd-error.log 644 12 * @01T06 Z /var...
**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([total|today|yesterday]);
ページ名: