Mail Server の移行
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Mail Server の移行 [#deba9113]
#counter([total|today|yesterday]);
**FreeBSD 4.4-RELEASE で運用中のMailサーバを新しいFreeBSD...
移動元の/usr/ports/distfiles
-rw-r--r-- 1 root wheel 6233 May 24 2002 BSDPAN-...
-rw-r--r-- 1 root wheel 33125 Jul 18 2001 Digest-...
-rw-r--r-- 1 root wheel 3003922 Jun 17 2001 FreeWnn...
-rw-r--r-- 1 root wheel 212806 Nov 17 2001 K12-1.b...
-rw-r--r-- 1 root wheel 61027 Nov 17 2001 K12-2.b...
-rw-r--r-- 1 root wheel 255587 Feb 4 2002 K14-1.b...
-rw-r--r-- 1 root wheel 75135 Feb 8 2002 K14-2.b...
-rw-r--r-- 1 root wheel 595861 Oct 10 2000 Kappa20...
-rw-r--r-- 1 root wheel 1083742 May 13 2001 ORBit-0...
-rw-r--r-- 1 root wheel 391028 Apr 27 2001 aalib-1...
-rw-r--r-- 1 root wheel 1973138 May 16 2001 apache_...
-rw-r--r-- 1 root wheel 57626 Dec 22 2005 apache_...
-rw-r--r-- 1 root wheel 2468056 Oct 17 2005 apache_...
-rw-r--r-- 1 root wheel 180508 Dec 16 1999 ascd-0....
-rw-r--r-- 1 root wheel 140705 Dec 16 1999 ascd-0....
-rw-r--r-- 1 root wheel 332223 Nov 9 2001 audiofi...
-rw-r--r-- 1 root wheel 259210 Feb 28 2000 autocon...
-rw-r--r-- 1 root wheel 443844 Jan 16 1999 autocon...
-rw-r--r-- 1 root wheel 376992 Jul 16 2001 automak...
-rw-r--r-- 1 root wheel 1488805 Oct 2 2001 bind-do...
-rw-r--r-- 1 root wheel 1404935 Oct 2 2001 bind-sr...
-rw-r--r-- 1 root wheel 627723 Mar 25 2002 bison-1...
-rw-r--r-- 1 root wheel 362275 Aug 20 2000 communi...
-rw-r--r-- 1 root wheel 348770 Dec 11 1999 cvsup-1...
-rw-r--r-- 1 root wheel 125435 Feb 29 2000 elisat1...
-rw-r--r-- 1 root wheel 10926430 Jan 26 2001 emacs-1...
-rw-r--r-- 1 root wheel 190316 Jul 28 2001 expat-1...
-rw-r--r-- 1 root wheel 697761 Mar 24 2002 faces-1...
-rw-r--r-- 1 root wheel 2422824 Aug 29 1997 freefon...
-rw-r--r-- 1 root wheel 646694 Jun 27 2001 freetyp...
-rw-r--r-- 1 root wheel 257631 Feb 23 2001 gd-1.8....
-rw-r--r-- 1 root wheel 3760 Jun 29 1999 gd_gif_...
-rw-r--r-- 1 root wheel 459728 Apr 27 2001 gdk-pix...
-rw-r--r-- 1 root wheel 713694 Aug 4 1999 gettext...
-rw-r--r-- 1 root wheel 3086351 Mar 13 2002 gettext...
-rw-r--r-- 1 root wheel 10795020 Feb 12 2002 gimp-1....
-rw-r--r-- 1 root wheel 421480 Mar 16 2001 glib-1....
drwxr-xr-x 2 root wheel 512 Apr 28 2002 gnome
-rw-r--r-- 1 root wheel 2868322 Apr 2 2001 gtk+-1....
-rw-r--r-- 1 root wheel 303362 Jan 10 2001 jiskan1...
-rw-r--r-- 1 root wheel 92122 Jan 10 2001 jiskan1...
-rw-r--r-- 1 root wheel 613261 Jun 29 2001 jpegsrc...
-rw-r--r-- 1 root wheel 196704 Jun 8 1999 kaname_...
drwxr-xr-x 2 root wheel 512 Sep 12 2002 kanji18
drwxr-xr-x 2 root wheel 512 Sep 12 2002 kanji26
-rw-r--r-- 1 root wheel 301108 May 30 1999 knj10-1...
-rw-r--r-- 1 root wheel 600313 Jan 31 2000 knm_new...
drwxr-xr-x 2 root wheel 512 Mar 23 2002 kterm
-rw-r--r-- 1 root wheel 242443 Dec 2 2001 lcms-1....
-rw-r--r-- 1 root wheel 11357 Dec 29 1999 libgnug...
-rw-r--r-- 1 root wheel 2941046 Jun 28 2001 libicon...
-rw-r--r-- 1 root wheel 500242 Jul 7 2001 libmng-...
-rw-r--r-- 1 root wheel 490278 Sep 1 2001 libpng-...
-rw-r--r-- 1 root wheel 535519 Dec 16 1999 libtool...
-rw-r--r-- 1 root wheel 102659 Jun 20 1999 libwork...
-rw-r--r-- 1 root wheel 317588 Nov 6 1994 m4-1.4....
-rw-r--r-- 1 root wheel 312244 Jan 18 2000 majordo...
-rw-r--r-- 1 root wheel 1030393 Jun 24 2000 make-3....
-rw-r--r-- 1 root wheel 660238 Feb 28 2000 mew-1.9...
-rw-r--r-- 1 root wheel 1227 Jan 21 2002 mkbold-...
-rw-r--r-- 1 root wheel 3211 Jan 21 2002 mkitali...
-rw-r--r-- 1 root wheel 26201678 Aug 4 2001 mozilla...
-rw-r--r-- 1 root wheel 497046 Sep 4 2001 mozilla...
-rw-r--r-- 1 root wheel 75684 Sep 2 2001 mozilla...
-rw-r--r-- 1 root wheel 152092 Aug 9 1999 mpeg_li...
-rw-r--r-- 1 root wheel 986994 Jun 5 2001 mrtg-2....
-rw-r--r-- 1 root wheel 1007515 Jul 31 2002 mrtg-2....
-rw-r--r-- 1 root wheel 30823 Oct 2 1998 mule-2....
-rw-r--r-- 1 root wheel 1416704 Oct 3 1997 mule-23...
-rw-r--r-- 1 root wheel 12527712 Jul 23 2002 navigat...
drwxr-xr-x 2 root wheel 512 Sep 12 2002 netscap...
drwxr-xr-x 3 root wheel 512 May 28 2002 netscape7
-rw-r--r-- 1 root wheel 129914 Sep 14 2001 nkf171....
-rw-r--r-- 1 root wheel 1991312 Aug 2 2001 ntp-4.1...
-rw-r--r-- 1 root wheel 5983695 Apr 9 2001 perl-5....
-rw-r--r-- 1 root wheel 89977 Jan 13 2006 pkg_ins...
-rw-r--r-- 1 root wheel 585852 Mar 27 2002 pkgconf...
drwxr-xr-x 2 root wheel 512 Apr 20 2002 pm3
-rw-r--r-- 1 root wheel 430638 Sep 15 2000 popt-1....
-rw-r--r-- 1 root wheel 21263 May 5 2001 qpopper...
-rw-r--r-- 1 root wheel 2326127 Jun 2 2001 qpopper...
drwxr-xr-x 2 root wheel 512 May 28 2002 rpm
-rw-r--r-- 1 root wheel 1646191 Sep 14 2000 rpm-3.0...
-rw-r--r-- 1 root wheel 4387598 Aug 20 2001 samba-2...
-rw-r--r-- 1 root wheel 264236 Aug 3 1998 sed-3.0...
-rw-r--r-- 1 root wheel 61399 Nov 28 2000 sedmb10...
-rw-r--r-- 1 root wheel 1374835 Aug 21 2001 sendmai...
-rw-r--r-- 1 root wheel 306022 Sep 11 1999 sharuti...
-rw-r--r-- 1 root wheel 4803574 May 28 2002 shinono...
-rw-r--r-- 1 root wheel 900890 Mar 29 2000 tiff-v3...
-rw-r--r-- 1 root wheel 61487 Jan 14 2000 ttmkfdi...
-rw-r--r-- 1 root wheel 1070770 Jan 28 2001 unzip54...
-rw-r--r-- 1 root wheel 445343 Aug 25 2001 wwwcoun...
-rw-r--r-- 1 root wheel 607282 Apr 15 1999 x11amp-...
drwxr-xr-x 2 root wheel 512 Apr 21 2002 xc
drwxr-xr-x 2 root wheel 512 Mar 24 2002 xemacs
-rw-r--r-- 1 root wheel 57862 Mar 3 2002 xmbmon1...
-rw-r--r-- 1 root wheel 131906 Nov 16 2000 xmixer-...
-rw-r--r-- 1 root wheel 148887 Mar 20 1998 xpm-3.4...
drwxr-xr-x 2 root wheel 512 Apr 28 2002 xv
-rw-r--r-- 1 root wheel 20248 Jun 29 2001 zcrypt2...
-rw-r--r-- 1 root wheel 723283 Jun 29 2001 zip23.t...
**qpopper install [#r74cf2ef]
# locate qpopper
# locate: database too small: /var/db/ locate.database
# /usr/libexec/locate.updatedb
# locate qpopper
# portinstall mail/qpopper
/etc/inetd.conf
pop3 stream tcp nowait root /usr/local/libexec/qpopper ...
pop3 stream tcp nowait.100 root /usr/local/libexec/qpopp...
********************************************************...
To enable the qpopper-daemon, add the following line to ...
pop3 stream tcp nowait root /usr/local/libexec/qpopper...
********************************************************...
===> Compressing manual pages for qpopper-4.1.0
***qpopper pop password の移行 [#y6ff775c]
http://www.smb.net/~jake/Boubi/Mail-clietns/home-lan-apop...
flora# scp mail.kuji-clinic.info:/usr/local/etc/qpopper/...
***Postfixのインストール [#ma33a3ba]
[[Postfix on FreeBSD]]
***Apacheのインストール [#jf75d1d0]
[[Apache on FreeBSD]]
***portinstall net/cvsup-without-gui [#ra4f4a66]
portinstall net/cvsup-without-gui
***portinstall sysutils/fastest_cvsup [#ieb8489f]
portinstall sysutils/fastest_cvsup
#ref(fastest.gif)
* [#b89c844f]
移動先には proxy user が標準ではいっているため、
#vipw して
proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexisten...
を入れておかないと、make install world で、
--------------------------------------------------------...
>>> Kernel build for GENERIC completed on Fri Oct 24 10:...
--------------------------------------------------------...
2178.179u 241.375s 23:23.78 172.3% 6087+984k 22044+...
ERROR: Required proxy user is missing, see /usr/src/UPDA...
*** Error code 1
になる。という、FAQ
|CENTER:移動元||CENTER:移動先|
|CENTER:FreeBSD 4.4R ||CENTER:FreeBSD 7.0R|
|||#cp /etc/master.passwd /etc/master.passwd-dist|
|/etc/master.passwd|->|/etc/master.passwd|
|||#vipwでmaster.passwdを編集保存|
|||#mv /usr/home /usr/home-dist|
//|||#scp -rp www.smb.net:/usr/home/ /usr/home/|
|cd /usr/|||
|#tar cvfzp home_date.tar.gz home|||
|||#scp FreeBSD4.4Rmachine:/usr/home_date.tar.gz /usr/|
|||#tar xvfzp /usr/home_date.tar.gz|
|/etc/hosts.allow|->|/etc/hosts.allow|
|% tar cvfzp /usr/local/www/data.070910.tar.gz /usr/local...
|||# scp www.smb.net:/usr/local/www/data.070910.tar.gz ./|
|||# mv data data-dist|
|||# tar xvfzp data.070910.tar.gz|
|cgiの移行|||
|ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"||ScriptA...
|cd /usr/local/www|||
|tar cvfzp cgi-bin.070913.tar.gz cgi-bin|||
|||cd /usr/local/www/apache22|
|||cp -rp cgi-bin/ cgi-bin-old|
|||scp www.smb.net:/usr/local/www/cgi-bin.070913.tar.gz ./|
|||tar xvfzp cgi-bin.070913.tar.gz|
|||cd /usr/local/www/apache22/cgi-bin-old|
|||cp -rp Count.cgi ../cgi-bin/|
~
|CENTER:移動元||CENTER:移動先|
|CENTER:FreeBSD 4.4R ||CENTER:FreeBSD 7.0R|
|||# /usr/sbin/sysinstall でinterfaceの設定を変える|
|||/etc/hosts の設定を確認|
|||/etc/resolv.conf の設定を確認|
|/etc/rc.conf||/etc/rc.conf で以下の#を除去|
|||#ifconfig_nve0="inet 219.117.246.201 netmask 255.255....
|||#ifconfig_nve0_alias0="inet 219.117.246.214 netmask 25...
|||#ifconfig_nve0_alias1="inet 219.117.246.214 netmask 25...
|||#ifconfig_nve0_alias2="inet 219.117.246.214 netmask 25...
|/usr/local/etc/apache/httpd.conf||/usr/local/etc/apache2...
|||# cp httpd-vhosts.conf-ready2go httpd-vhosts.conf|
|||/usr/local/etc/apache22/httpd.conf|
|||#Include etc/apache22/extra/httpd-vhosts.conf の#除去|
|||#ServerName www.smb.net:80 も?|
|||/usr/local/etc/postfix/main.cf のホスト名を変更|
&lastmod;
**アプリケーションのインストール [#y3986514]
***/usr/ports/www/apache22 [#k72fde39]
===> Installing rc.d startup script(s)
===> Compressing manual pages for apache-2.2.4_2
===> Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===> Registering installation for apache-2.2.4_2
===> 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/
**手動起動 [#d8e8801a]
# apachectl start
[Sun Sep 09 17:19:40 2007] [warn] (2)No such file or dir...
# apachectl start
httpd (pid 81641) already running
**自動起動 [#lcb39fac]
/usr/ports/www/apache22/files/apache22.sh.inを見ると
# Add the following lines to /etc/rc.conf to enable apac...
# apache22_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable ...
# apache22_profiles (str): Set to "" by default.
# Define your profiles here.
# apache22limits_enable (bool):Set to "NO" by default.
# Set it to yes to run `limi...
# just before apache starts.
# apache22_flags (str): Set to "" by default.
# Extra flags passed to star...
# apache22limits_args (str): Default to "-e -C daemon"
# Arguments of pre-start lim...
# apache22_http_accept_enable (bool): Set to "NO" by def...
# Set to yes to check for ac...
# module on start up and loa...
ので、/etc/rc.conf に、apache22_enable="YES"
**/usr/local/etc/apache22/ [#h19b7553]
***httpd.conf [#c2f4e423]
ServerAdmin webmaster@smb.net
# Server-pool management (MPM specific)
#Include etc/apache22/extra/httpd-mpm.conf
# Multi-language error messages
Include etc/apache22/extra/httpd-multilang-errordoc.conf
# Fancy directory listings
#Include etc/apache22/extra/httpd-autoindex.conf
# Language settings
#Include etc/apache22/extra/httpd-languages.conf
# User home directories
Include etc/apache22/extra/httpd-userdir.conf
# Real-time info on requests and configuration
Include etc/apache22/extra/httpd-info.conf
# Virtual hosts
Include etc/apache22/extra/httpd-vhosts.conf
# Local access to the Apache HTTP Server Manual
#Include etc/apache22/extra/httpd-manual.conf
# Distributed authoring and versioning (WebDAV)
#Include etc/apache22/extra/httpd-dav.conf
# Various default settings
#Include etc/apache22/extra/httpd-default.conf
# Secure (SSL/TLS) connections
##Include etc/apache22/extra/httpd-ssl.conf
**WWWCount [#zbbb97cf]
カウンターは普通にインストールすると、nobody:nogroupにな...
# chown www:www /usr/local/www/apache22/cgi-bin/Count.cgi
# chown -R www:www /usr/local/etc/Counter/data
する~
で、更新元から/usr/local/etc/Counter/dataをコピーしowner...
# chown -R www:www /usr/local/etc/Counter/data
する
# whereis wwwcount
wwwcount: /usr/ports/www/wwwcount
# cd /usr/ports/www/wwwcount
# make install
===> Vulnerability check disabled, database not found
===> Extracting for wwwcount-2.5_2
=> MD5 Checksum mismatch for wwwcount2.5.tar.gz.
=> SHA256 Checksum mismatch for wwwcount2.5.tar.gz.
===> Refetch for 1 more times files: wwwcount2.5.tar.gz...
===> Vulnerability check disabled, database not found
=> wwwcount2.5.tar.gz doesn't seem to exist in /usr/port...
=> Attempting to fetch from
http://www.muquit.com/muquit/software/Count/src/wwwcount...
fetch: wwwcount2.5.tar.gz: local modification time does ...
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/Fr...
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles...
File unavailable (e.g., file not found, no access)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1
Stop in /usr/ports/www/wwwcount.
*** Error code 1
Stop in /usr/ports/www/wwwcount.
ので、隣のマシンから、wwwcount2.5.tar.gz をscpしてきて
# make install
===> Vulnerability check disabled, database not found
===> Extracting for wwwcount-2.5_2
=> MD5 Checksum OK for wwwcount2.5.tar.gz.
=> SHA256 Checksum OK for wwwcount2.5.tar.gz.
===> Patching for wwwcount-2.5_2
===> Applying FreeBSD patches for wwwcount-2.5_2
===> wwwcount-2.5_2 depends on executable: gmake - found
===> Configuring for wwwcount-2.5_2
cd /usr/ports/www/wwwcount/work/wwwcount2.5; PREFIX=/usr...
Welcome to the configuration procedure of Count 2.5
---------------------------------------------------
o You must know where your system keeps CGI programs ...
It is necessary to generate the install program.
This directory must exist. If this directory does n...
configuration procedure will Abort!
o You have to decide a directory, where you will keep...
stuff. This directory will have other directories i...
values will be supplied, press Return key to accept...
Try to Accept the default value, it will make your ...
because not much error checking is done to verify i...
During installation, the directories will be created ...
if they do not exist and if you have the permission t...
++
Continue [y|n]?
You need to enter the full path of the directory wher...
keeps the CGI programs.
*cgi-bin directory [/usr/local/www/cgi-bin]: /usr/local/...
You need to enter the base directory of the counter r...
It must be a absolute path.
*Base directory [/usr/local/etc/Counter]:
You need to enter the name directory of the configura...
* Config directory [/usr/local/etc/Counter/conf]:
You need to enter the name of the configuration file....
is not the path of the file, just the name. No / is a...
name.
This file contains the information about
o if you want to ignore access from certain hosts
o host access authentication
You will create this file later by running the progra...
* Name of the configuration file [count.cfg]:
You need to enter the directory of the counter data f...
*Data directory [/usr/local/etc/Counter/data]:
*Digits directory [/usr/local/lib/Counter/digits]:
You need to enter the directory of the Log file.
*Log directory [/var/log]:
You need to enter the name of the Log file. Note, it ...
the path. No / is allowed in the name.
This file hold the error messages of the counter. It ...
logs if someone tried to access your counter remotely.
* Name of the log file [Counter.log]:
Your configuration:
--------------------------------------------------------...
CgiBinDir=/usr/local/www/apache22/cgi-bin/
BaseDir= /usr/local/etc/Counter
DigitDir=/usr/local/lib/Counter/digits
ConfDir= /usr/local/etc/Counter/conf
ConfFile=count.cfg
DataDir=/usr/local/etc/Counter/data
LogDir=/var/log
LogFile=Counter.log
--------------------------------------------------------...
Everything looks OK [y|n]? y
ED_PROTOTYPES_ -o extdgts extdgts.o ../../libs/combine/l...
cp extdgts ../../bin
/bin/ls -l ./bin
total 150
-rwxr-xr-x 1 root wheel 89481 Sep 10 05:04 Count.cgi
-rw-r--r-- 1 root wheel 43 Mar 19 2001 README
-rwxr-xr-x 1 root wheel 27405 Sep 10 05:04 extdgts
-rwxr-xr-x 1 root wheel 31442 Sep 10 05:04 mkstrip
cd /usr/ports/www/wwwcount/work/wwwcount2.5; ./Gen-conf
Welcome to the conf file generation procedure of Coun...
This program creates a workable conf file for your ho...
to edit it by hand if you want to add other hosts. Th...
enough comments in it to help you out. You also have ...
if you want to use netmasks to mask out a entire netw...
range of hosts in a network.
First of all you must know your
1) fully qualified domain name (FQDN), for example,
if your hostname is foo and your domain name ...
then your FQDN is
foo.bar.com
2) IP address of your host, for example,
192.165.155.2
3) If your host has any nickname defined, for exa...
www.foo.com. Note, th nick name also has to b...
Continue [y|n]?y
No Error checking will be done with your hostname, th...
you better make sure you are entering the fully quali...
* Enter your fully qualified domain name [no default]: w...
No Error checking will be done with your IP address, ...
you better make sure you are entering the correct IP ...
* Enter your IP address [no default]: 219.117.246.201
* Does your host have any nickname [y|n]:? y
* Enter your host's nickname (FQDN) [no default]:
* Enter your host's nickname [no default]: www.niihama-m...
Now you need to decide if you will allow the users to...
for them automatically. If you allow, the counter dat...
created for the user if it does not exist and a pre-d...
number will be inserted to it. If you do not allow, y...
the datafile for each user, provided that the data di...
write permission.
Allowing users to create datafile is very convenient,...
have to be asked all the time when someone decides to...
But the dark side of this is, anyone will be able cre...
the data directory. The decision is yours.
* Do you want to allow automatic file creation [[y|n]? y
Now you need to decide if you want to compile the pro...
mode. If you compile the program in strict mode, the ...
do not return the environment variable HTTP_REFERER, ...
served, that is no access hit will be recorded, no ti...
will be displayed. Instead, a string 888888 will be d...
The strict mode ensures that your counter data file c...
by accessing the counter remotely from a browser whic...
that variable. Note, good browsers like netscape retu...
variable. Other browsers e.g. Mosaic does not return ...
IMG GET method at this time. This strict mode is exp...
time!
* Do you want the program to run in strict mode [[y|n]? y
* Do you want to ignore access hits from your own host [...
Ok, do you want the users to use the file rgb.txt for...
lookup? It is very inefficient to search this file ev...
web page is loaded. If you answer yes, the color name
will be looked up and used. If you answer no, the col...
looked up but instead of the counter image, the RGB v...
be displayed and the user will be asked to use the RG...
instead. This will prevent users to use this file. Ho...
the convenience of allowing to use rgb.txt file is th...
red, gold etc. can be used instead of cryptic red, g...
components of the color.
* Allow using the rgb.txt file [y|n]? y
You can decide if you want to allow reload count in y...
When a visitor reloads a page and if you decided to c...
the counter will increment with each reload. It is a ...
to ignore reload count as it minimizes remote abuse o...
Howerver, there may be situation when you will have t...
for example if visitors are coming through a proxy se...
decide to count reload, your users will have choice t...
count reload for their counters with "reload=T or F" ...
* Do you want to allow the counter to be reloaded [y|n]? n
You can decide if you want to log the counter error m...
or warning messages to the log file. If you are conce...
space, answer n to the question.
* Do you want to log error messages [[y|n]? y
You can decide if you want to show error messages to ...
The counter error messages are verbose and may reveal...
the system (e.g. full path of the data file or config...
error. If you are concerned with privacy or simply do...
error messages to browsers (you are confident that th...
perfectly), then answer n to the question. If you ans...
if there is an error or the access is denied, the vis...
broken image (browser default).
* Do you want to show error messages to browsers [[y|n]? y
Created conf file "count.cfg"
Please look at it, you might want to edit it!
===> Installing for wwwcount-2.5_2
===> Generating temporary packing list
===> Checking if www/wwwcount already installed
cd /usr/ports/www/wwwcount/work/wwwcount2.5; yes "" | ./...
*** You are installing Counter as root ***
--------------------------------------------------------...
Your configuration is shown below. You are only allowed ...
cgi-bin directory. If you want to change it, edit the fi...
and change the variable CGIBIN_DIR to the appropriate di...
anything else.
cgi-bin directory = /usr/local/www/apache22/cgi-bin/
conf directory = /usr/local/etc/Counter/conf
conf file to install= count.cfg
digit directory = /usr/local/lib/Counter/digits
data directory = /usr/local/etc/Counter/data
log directory = /var/log
log file = Counter.log
RGB file to install = ./data/rgb.txt
--------------------------------------------------------...
Press Control-C to abort
Continue [y|n]? proceeding...
Now if you know what user and group id child processe...
server use, I can change the ownership and access per...
accordigly. If you do not know, they are usually defi...
file httpd.conf with User and Group. I suggest create...
user and group say httpd and set the User and Group t...
*Do you know the user and group id of httpd' child proce...
user id of httpd's child process [nobody]:? *Enter grou...
process [nogroup]:? installing Count.cgi->/usr/local/www...
installing count.cfg->/usr/local/etc/Counter/conf
installing sample datafile ./data/data/sample.dat->/usr/...
installing rgb.txt->/usr/local/lib/Counter
installing Counter.log->/var/log
chown: nobody.nogroup: Invalid argument
installing image strip for digit style A->/usr/local/lib...
installing sample image peng.gif->/usr/local/lib/Counter...
installing image strip for digit style B->/usr/local/lib...
installing strip image for digit style C->/usr/local/lib...
installing strip image for digit style D->/usr/local/lib...
installing sample image lenna.gif->/usr/local/lib/Counte...
installing strip image for digit style E->/usr/local/lib...
installing image foo.gif in E->/usr/local/lib/Counter/d...
installing image yeehaw.gif in A->/usr/local/lib/Counte...
installing strip image for digit style cd->/usr/local/li...
installing strip image for digit style cdr->/usr/local/l...
installing strip image for digit style cdd->/usr/local/l...
installing strip image for digit style bang->/usr/local/...
installing the mirroring script
cd /usr/ports/www/wwwcount/work/wwwcount2.5/utils/extdgt...
root -g wheel -m 555 extdgts /usr/local/bin;
cd /usr/ports/www/wwwcount/work/wwwcount2.5/utils/mkstri...
root -g wheel -m 555 mkstrip /usr/local/bin; install -...
mkstrip.1 /usr/local/man/man1; install -o root -g whee...
mkstrip.sh /usr/local/lib/Counter/digits
===> Compressing manual pages for wwwcount-2.5_2
===> Registering installation for wwwcount-2.5_2
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Mail Server の移行 [#deba9113]
#counter([total|today|yesterday]);
**FreeBSD 4.4-RELEASE で運用中のMailサーバを新しいFreeBSD...
移動元の/usr/ports/distfiles
-rw-r--r-- 1 root wheel 6233 May 24 2002 BSDPAN-...
-rw-r--r-- 1 root wheel 33125 Jul 18 2001 Digest-...
-rw-r--r-- 1 root wheel 3003922 Jun 17 2001 FreeWnn...
-rw-r--r-- 1 root wheel 212806 Nov 17 2001 K12-1.b...
-rw-r--r-- 1 root wheel 61027 Nov 17 2001 K12-2.b...
-rw-r--r-- 1 root wheel 255587 Feb 4 2002 K14-1.b...
-rw-r--r-- 1 root wheel 75135 Feb 8 2002 K14-2.b...
-rw-r--r-- 1 root wheel 595861 Oct 10 2000 Kappa20...
-rw-r--r-- 1 root wheel 1083742 May 13 2001 ORBit-0...
-rw-r--r-- 1 root wheel 391028 Apr 27 2001 aalib-1...
-rw-r--r-- 1 root wheel 1973138 May 16 2001 apache_...
-rw-r--r-- 1 root wheel 57626 Dec 22 2005 apache_...
-rw-r--r-- 1 root wheel 2468056 Oct 17 2005 apache_...
-rw-r--r-- 1 root wheel 180508 Dec 16 1999 ascd-0....
-rw-r--r-- 1 root wheel 140705 Dec 16 1999 ascd-0....
-rw-r--r-- 1 root wheel 332223 Nov 9 2001 audiofi...
-rw-r--r-- 1 root wheel 259210 Feb 28 2000 autocon...
-rw-r--r-- 1 root wheel 443844 Jan 16 1999 autocon...
-rw-r--r-- 1 root wheel 376992 Jul 16 2001 automak...
-rw-r--r-- 1 root wheel 1488805 Oct 2 2001 bind-do...
-rw-r--r-- 1 root wheel 1404935 Oct 2 2001 bind-sr...
-rw-r--r-- 1 root wheel 627723 Mar 25 2002 bison-1...
-rw-r--r-- 1 root wheel 362275 Aug 20 2000 communi...
-rw-r--r-- 1 root wheel 348770 Dec 11 1999 cvsup-1...
-rw-r--r-- 1 root wheel 125435 Feb 29 2000 elisat1...
-rw-r--r-- 1 root wheel 10926430 Jan 26 2001 emacs-1...
-rw-r--r-- 1 root wheel 190316 Jul 28 2001 expat-1...
-rw-r--r-- 1 root wheel 697761 Mar 24 2002 faces-1...
-rw-r--r-- 1 root wheel 2422824 Aug 29 1997 freefon...
-rw-r--r-- 1 root wheel 646694 Jun 27 2001 freetyp...
-rw-r--r-- 1 root wheel 257631 Feb 23 2001 gd-1.8....
-rw-r--r-- 1 root wheel 3760 Jun 29 1999 gd_gif_...
-rw-r--r-- 1 root wheel 459728 Apr 27 2001 gdk-pix...
-rw-r--r-- 1 root wheel 713694 Aug 4 1999 gettext...
-rw-r--r-- 1 root wheel 3086351 Mar 13 2002 gettext...
-rw-r--r-- 1 root wheel 10795020 Feb 12 2002 gimp-1....
-rw-r--r-- 1 root wheel 421480 Mar 16 2001 glib-1....
drwxr-xr-x 2 root wheel 512 Apr 28 2002 gnome
-rw-r--r-- 1 root wheel 2868322 Apr 2 2001 gtk+-1....
-rw-r--r-- 1 root wheel 303362 Jan 10 2001 jiskan1...
-rw-r--r-- 1 root wheel 92122 Jan 10 2001 jiskan1...
-rw-r--r-- 1 root wheel 613261 Jun 29 2001 jpegsrc...
-rw-r--r-- 1 root wheel 196704 Jun 8 1999 kaname_...
drwxr-xr-x 2 root wheel 512 Sep 12 2002 kanji18
drwxr-xr-x 2 root wheel 512 Sep 12 2002 kanji26
-rw-r--r-- 1 root wheel 301108 May 30 1999 knj10-1...
-rw-r--r-- 1 root wheel 600313 Jan 31 2000 knm_new...
drwxr-xr-x 2 root wheel 512 Mar 23 2002 kterm
-rw-r--r-- 1 root wheel 242443 Dec 2 2001 lcms-1....
-rw-r--r-- 1 root wheel 11357 Dec 29 1999 libgnug...
-rw-r--r-- 1 root wheel 2941046 Jun 28 2001 libicon...
-rw-r--r-- 1 root wheel 500242 Jul 7 2001 libmng-...
-rw-r--r-- 1 root wheel 490278 Sep 1 2001 libpng-...
-rw-r--r-- 1 root wheel 535519 Dec 16 1999 libtool...
-rw-r--r-- 1 root wheel 102659 Jun 20 1999 libwork...
-rw-r--r-- 1 root wheel 317588 Nov 6 1994 m4-1.4....
-rw-r--r-- 1 root wheel 312244 Jan 18 2000 majordo...
-rw-r--r-- 1 root wheel 1030393 Jun 24 2000 make-3....
-rw-r--r-- 1 root wheel 660238 Feb 28 2000 mew-1.9...
-rw-r--r-- 1 root wheel 1227 Jan 21 2002 mkbold-...
-rw-r--r-- 1 root wheel 3211 Jan 21 2002 mkitali...
-rw-r--r-- 1 root wheel 26201678 Aug 4 2001 mozilla...
-rw-r--r-- 1 root wheel 497046 Sep 4 2001 mozilla...
-rw-r--r-- 1 root wheel 75684 Sep 2 2001 mozilla...
-rw-r--r-- 1 root wheel 152092 Aug 9 1999 mpeg_li...
-rw-r--r-- 1 root wheel 986994 Jun 5 2001 mrtg-2....
-rw-r--r-- 1 root wheel 1007515 Jul 31 2002 mrtg-2....
-rw-r--r-- 1 root wheel 30823 Oct 2 1998 mule-2....
-rw-r--r-- 1 root wheel 1416704 Oct 3 1997 mule-23...
-rw-r--r-- 1 root wheel 12527712 Jul 23 2002 navigat...
drwxr-xr-x 2 root wheel 512 Sep 12 2002 netscap...
drwxr-xr-x 3 root wheel 512 May 28 2002 netscape7
-rw-r--r-- 1 root wheel 129914 Sep 14 2001 nkf171....
-rw-r--r-- 1 root wheel 1991312 Aug 2 2001 ntp-4.1...
-rw-r--r-- 1 root wheel 5983695 Apr 9 2001 perl-5....
-rw-r--r-- 1 root wheel 89977 Jan 13 2006 pkg_ins...
-rw-r--r-- 1 root wheel 585852 Mar 27 2002 pkgconf...
drwxr-xr-x 2 root wheel 512 Apr 20 2002 pm3
-rw-r--r-- 1 root wheel 430638 Sep 15 2000 popt-1....
-rw-r--r-- 1 root wheel 21263 May 5 2001 qpopper...
-rw-r--r-- 1 root wheel 2326127 Jun 2 2001 qpopper...
drwxr-xr-x 2 root wheel 512 May 28 2002 rpm
-rw-r--r-- 1 root wheel 1646191 Sep 14 2000 rpm-3.0...
-rw-r--r-- 1 root wheel 4387598 Aug 20 2001 samba-2...
-rw-r--r-- 1 root wheel 264236 Aug 3 1998 sed-3.0...
-rw-r--r-- 1 root wheel 61399 Nov 28 2000 sedmb10...
-rw-r--r-- 1 root wheel 1374835 Aug 21 2001 sendmai...
-rw-r--r-- 1 root wheel 306022 Sep 11 1999 sharuti...
-rw-r--r-- 1 root wheel 4803574 May 28 2002 shinono...
-rw-r--r-- 1 root wheel 900890 Mar 29 2000 tiff-v3...
-rw-r--r-- 1 root wheel 61487 Jan 14 2000 ttmkfdi...
-rw-r--r-- 1 root wheel 1070770 Jan 28 2001 unzip54...
-rw-r--r-- 1 root wheel 445343 Aug 25 2001 wwwcoun...
-rw-r--r-- 1 root wheel 607282 Apr 15 1999 x11amp-...
drwxr-xr-x 2 root wheel 512 Apr 21 2002 xc
drwxr-xr-x 2 root wheel 512 Mar 24 2002 xemacs
-rw-r--r-- 1 root wheel 57862 Mar 3 2002 xmbmon1...
-rw-r--r-- 1 root wheel 131906 Nov 16 2000 xmixer-...
-rw-r--r-- 1 root wheel 148887 Mar 20 1998 xpm-3.4...
drwxr-xr-x 2 root wheel 512 Apr 28 2002 xv
-rw-r--r-- 1 root wheel 20248 Jun 29 2001 zcrypt2...
-rw-r--r-- 1 root wheel 723283 Jun 29 2001 zip23.t...
**qpopper install [#r74cf2ef]
# locate qpopper
# locate: database too small: /var/db/ locate.database
# /usr/libexec/locate.updatedb
# locate qpopper
# portinstall mail/qpopper
/etc/inetd.conf
pop3 stream tcp nowait root /usr/local/libexec/qpopper ...
pop3 stream tcp nowait.100 root /usr/local/libexec/qpopp...
********************************************************...
To enable the qpopper-daemon, add the following line to ...
pop3 stream tcp nowait root /usr/local/libexec/qpopper...
********************************************************...
===> Compressing manual pages for qpopper-4.1.0
***qpopper pop password の移行 [#y6ff775c]
http://www.smb.net/~jake/Boubi/Mail-clietns/home-lan-apop...
flora# scp mail.kuji-clinic.info:/usr/local/etc/qpopper/...
***Postfixのインストール [#ma33a3ba]
[[Postfix on FreeBSD]]
***Apacheのインストール [#jf75d1d0]
[[Apache on FreeBSD]]
***portinstall net/cvsup-without-gui [#ra4f4a66]
portinstall net/cvsup-without-gui
***portinstall sysutils/fastest_cvsup [#ieb8489f]
portinstall sysutils/fastest_cvsup
#ref(fastest.gif)
* [#b89c844f]
移動先には proxy user が標準ではいっているため、
#vipw して
proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexisten...
を入れておかないと、make install world で、
--------------------------------------------------------...
>>> Kernel build for GENERIC completed on Fri Oct 24 10:...
--------------------------------------------------------...
2178.179u 241.375s 23:23.78 172.3% 6087+984k 22044+...
ERROR: Required proxy user is missing, see /usr/src/UPDA...
*** Error code 1
になる。という、FAQ
|CENTER:移動元||CENTER:移動先|
|CENTER:FreeBSD 4.4R ||CENTER:FreeBSD 7.0R|
|||#cp /etc/master.passwd /etc/master.passwd-dist|
|/etc/master.passwd|->|/etc/master.passwd|
|||#vipwでmaster.passwdを編集保存|
|||#mv /usr/home /usr/home-dist|
//|||#scp -rp www.smb.net:/usr/home/ /usr/home/|
|cd /usr/|||
|#tar cvfzp home_date.tar.gz home|||
|||#scp FreeBSD4.4Rmachine:/usr/home_date.tar.gz /usr/|
|||#tar xvfzp /usr/home_date.tar.gz|
|/etc/hosts.allow|->|/etc/hosts.allow|
|% tar cvfzp /usr/local/www/data.070910.tar.gz /usr/local...
|||# scp www.smb.net:/usr/local/www/data.070910.tar.gz ./|
|||# mv data data-dist|
|||# tar xvfzp data.070910.tar.gz|
|cgiの移行|||
|ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"||ScriptA...
|cd /usr/local/www|||
|tar cvfzp cgi-bin.070913.tar.gz cgi-bin|||
|||cd /usr/local/www/apache22|
|||cp -rp cgi-bin/ cgi-bin-old|
|||scp www.smb.net:/usr/local/www/cgi-bin.070913.tar.gz ./|
|||tar xvfzp cgi-bin.070913.tar.gz|
|||cd /usr/local/www/apache22/cgi-bin-old|
|||cp -rp Count.cgi ../cgi-bin/|
~
|CENTER:移動元||CENTER:移動先|
|CENTER:FreeBSD 4.4R ||CENTER:FreeBSD 7.0R|
|||# /usr/sbin/sysinstall でinterfaceの設定を変える|
|||/etc/hosts の設定を確認|
|||/etc/resolv.conf の設定を確認|
|/etc/rc.conf||/etc/rc.conf で以下の#を除去|
|||#ifconfig_nve0="inet 219.117.246.201 netmask 255.255....
|||#ifconfig_nve0_alias0="inet 219.117.246.214 netmask 25...
|||#ifconfig_nve0_alias1="inet 219.117.246.214 netmask 25...
|||#ifconfig_nve0_alias2="inet 219.117.246.214 netmask 25...
|/usr/local/etc/apache/httpd.conf||/usr/local/etc/apache2...
|||# cp httpd-vhosts.conf-ready2go httpd-vhosts.conf|
|||/usr/local/etc/apache22/httpd.conf|
|||#Include etc/apache22/extra/httpd-vhosts.conf の#除去|
|||#ServerName www.smb.net:80 も?|
|||/usr/local/etc/postfix/main.cf のホスト名を変更|
&lastmod;
**アプリケーションのインストール [#y3986514]
***/usr/ports/www/apache22 [#k72fde39]
===> Installing rc.d startup script(s)
===> Compressing manual pages for apache-2.2.4_2
===> Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===> Registering installation for apache-2.2.4_2
===> 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/
**手動起動 [#d8e8801a]
# apachectl start
[Sun Sep 09 17:19:40 2007] [warn] (2)No such file or dir...
# apachectl start
httpd (pid 81641) already running
**自動起動 [#lcb39fac]
/usr/ports/www/apache22/files/apache22.sh.inを見ると
# Add the following lines to /etc/rc.conf to enable apac...
# apache22_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable ...
# apache22_profiles (str): Set to "" by default.
# Define your profiles here.
# apache22limits_enable (bool):Set to "NO" by default.
# Set it to yes to run `limi...
# just before apache starts.
# apache22_flags (str): Set to "" by default.
# Extra flags passed to star...
# apache22limits_args (str): Default to "-e -C daemon"
# Arguments of pre-start lim...
# apache22_http_accept_enable (bool): Set to "NO" by def...
# Set to yes to check for ac...
# module on start up and loa...
ので、/etc/rc.conf に、apache22_enable="YES"
**/usr/local/etc/apache22/ [#h19b7553]
***httpd.conf [#c2f4e423]
ServerAdmin webmaster@smb.net
# Server-pool management (MPM specific)
#Include etc/apache22/extra/httpd-mpm.conf
# Multi-language error messages
Include etc/apache22/extra/httpd-multilang-errordoc.conf
# Fancy directory listings
#Include etc/apache22/extra/httpd-autoindex.conf
# Language settings
#Include etc/apache22/extra/httpd-languages.conf
# User home directories
Include etc/apache22/extra/httpd-userdir.conf
# Real-time info on requests and configuration
Include etc/apache22/extra/httpd-info.conf
# Virtual hosts
Include etc/apache22/extra/httpd-vhosts.conf
# Local access to the Apache HTTP Server Manual
#Include etc/apache22/extra/httpd-manual.conf
# Distributed authoring and versioning (WebDAV)
#Include etc/apache22/extra/httpd-dav.conf
# Various default settings
#Include etc/apache22/extra/httpd-default.conf
# Secure (SSL/TLS) connections
##Include etc/apache22/extra/httpd-ssl.conf
**WWWCount [#zbbb97cf]
カウンターは普通にインストールすると、nobody:nogroupにな...
# chown www:www /usr/local/www/apache22/cgi-bin/Count.cgi
# chown -R www:www /usr/local/etc/Counter/data
する~
で、更新元から/usr/local/etc/Counter/dataをコピーしowner...
# chown -R www:www /usr/local/etc/Counter/data
する
# whereis wwwcount
wwwcount: /usr/ports/www/wwwcount
# cd /usr/ports/www/wwwcount
# make install
===> Vulnerability check disabled, database not found
===> Extracting for wwwcount-2.5_2
=> MD5 Checksum mismatch for wwwcount2.5.tar.gz.
=> SHA256 Checksum mismatch for wwwcount2.5.tar.gz.
===> Refetch for 1 more times files: wwwcount2.5.tar.gz...
===> Vulnerability check disabled, database not found
=> wwwcount2.5.tar.gz doesn't seem to exist in /usr/port...
=> Attempting to fetch from
http://www.muquit.com/muquit/software/Count/src/wwwcount...
fetch: wwwcount2.5.tar.gz: local modification time does ...
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/Fr...
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles...
File unavailable (e.g., file not found, no access)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1
Stop in /usr/ports/www/wwwcount.
*** Error code 1
Stop in /usr/ports/www/wwwcount.
ので、隣のマシンから、wwwcount2.5.tar.gz をscpしてきて
# make install
===> Vulnerability check disabled, database not found
===> Extracting for wwwcount-2.5_2
=> MD5 Checksum OK for wwwcount2.5.tar.gz.
=> SHA256 Checksum OK for wwwcount2.5.tar.gz.
===> Patching for wwwcount-2.5_2
===> Applying FreeBSD patches for wwwcount-2.5_2
===> wwwcount-2.5_2 depends on executable: gmake - found
===> Configuring for wwwcount-2.5_2
cd /usr/ports/www/wwwcount/work/wwwcount2.5; PREFIX=/usr...
Welcome to the configuration procedure of Count 2.5
---------------------------------------------------
o You must know where your system keeps CGI programs ...
It is necessary to generate the install program.
This directory must exist. If this directory does n...
configuration procedure will Abort!
o You have to decide a directory, where you will keep...
stuff. This directory will have other directories i...
values will be supplied, press Return key to accept...
Try to Accept the default value, it will make your ...
because not much error checking is done to verify i...
During installation, the directories will be created ...
if they do not exist and if you have the permission t...
++
Continue [y|n]?
You need to enter the full path of the directory wher...
keeps the CGI programs.
*cgi-bin directory [/usr/local/www/cgi-bin]: /usr/local/...
You need to enter the base directory of the counter r...
It must be a absolute path.
*Base directory [/usr/local/etc/Counter]:
You need to enter the name directory of the configura...
* Config directory [/usr/local/etc/Counter/conf]:
You need to enter the name of the configuration file....
is not the path of the file, just the name. No / is a...
name.
This file contains the information about
o if you want to ignore access from certain hosts
o host access authentication
You will create this file later by running the progra...
* Name of the configuration file [count.cfg]:
You need to enter the directory of the counter data f...
*Data directory [/usr/local/etc/Counter/data]:
*Digits directory [/usr/local/lib/Counter/digits]:
You need to enter the directory of the Log file.
*Log directory [/var/log]:
You need to enter the name of the Log file. Note, it ...
the path. No / is allowed in the name.
This file hold the error messages of the counter. It ...
logs if someone tried to access your counter remotely.
* Name of the log file [Counter.log]:
Your configuration:
--------------------------------------------------------...
CgiBinDir=/usr/local/www/apache22/cgi-bin/
BaseDir= /usr/local/etc/Counter
DigitDir=/usr/local/lib/Counter/digits
ConfDir= /usr/local/etc/Counter/conf
ConfFile=count.cfg
DataDir=/usr/local/etc/Counter/data
LogDir=/var/log
LogFile=Counter.log
--------------------------------------------------------...
Everything looks OK [y|n]? y
ED_PROTOTYPES_ -o extdgts extdgts.o ../../libs/combine/l...
cp extdgts ../../bin
/bin/ls -l ./bin
total 150
-rwxr-xr-x 1 root wheel 89481 Sep 10 05:04 Count.cgi
-rw-r--r-- 1 root wheel 43 Mar 19 2001 README
-rwxr-xr-x 1 root wheel 27405 Sep 10 05:04 extdgts
-rwxr-xr-x 1 root wheel 31442 Sep 10 05:04 mkstrip
cd /usr/ports/www/wwwcount/work/wwwcount2.5; ./Gen-conf
Welcome to the conf file generation procedure of Coun...
This program creates a workable conf file for your ho...
to edit it by hand if you want to add other hosts. Th...
enough comments in it to help you out. You also have ...
if you want to use netmasks to mask out a entire netw...
range of hosts in a network.
First of all you must know your
1) fully qualified domain name (FQDN), for example,
if your hostname is foo and your domain name ...
then your FQDN is
foo.bar.com
2) IP address of your host, for example,
192.165.155.2
3) If your host has any nickname defined, for exa...
www.foo.com. Note, th nick name also has to b...
Continue [y|n]?y
No Error checking will be done with your hostname, th...
you better make sure you are entering the fully quali...
* Enter your fully qualified domain name [no default]: w...
No Error checking will be done with your IP address, ...
you better make sure you are entering the correct IP ...
* Enter your IP address [no default]: 219.117.246.201
* Does your host have any nickname [y|n]:? y
* Enter your host's nickname (FQDN) [no default]:
* Enter your host's nickname [no default]: www.niihama-m...
Now you need to decide if you will allow the users to...
for them automatically. If you allow, the counter dat...
created for the user if it does not exist and a pre-d...
number will be inserted to it. If you do not allow, y...
the datafile for each user, provided that the data di...
write permission.
Allowing users to create datafile is very convenient,...
have to be asked all the time when someone decides to...
But the dark side of this is, anyone will be able cre...
the data directory. The decision is yours.
* Do you want to allow automatic file creation [[y|n]? y
Now you need to decide if you want to compile the pro...
mode. If you compile the program in strict mode, the ...
do not return the environment variable HTTP_REFERER, ...
served, that is no access hit will be recorded, no ti...
will be displayed. Instead, a string 888888 will be d...
The strict mode ensures that your counter data file c...
by accessing the counter remotely from a browser whic...
that variable. Note, good browsers like netscape retu...
variable. Other browsers e.g. Mosaic does not return ...
IMG GET method at this time. This strict mode is exp...
time!
* Do you want the program to run in strict mode [[y|n]? y
* Do you want to ignore access hits from your own host [...
Ok, do you want the users to use the file rgb.txt for...
lookup? It is very inefficient to search this file ev...
web page is loaded. If you answer yes, the color name
will be looked up and used. If you answer no, the col...
looked up but instead of the counter image, the RGB v...
be displayed and the user will be asked to use the RG...
instead. This will prevent users to use this file. Ho...
the convenience of allowing to use rgb.txt file is th...
red, gold etc. can be used instead of cryptic red, g...
components of the color.
* Allow using the rgb.txt file [y|n]? y
You can decide if you want to allow reload count in y...
When a visitor reloads a page and if you decided to c...
the counter will increment with each reload. It is a ...
to ignore reload count as it minimizes remote abuse o...
Howerver, there may be situation when you will have t...
for example if visitors are coming through a proxy se...
decide to count reload, your users will have choice t...
count reload for their counters with "reload=T or F" ...
* Do you want to allow the counter to be reloaded [y|n]? n
You can decide if you want to log the counter error m...
or warning messages to the log file. If you are conce...
space, answer n to the question.
* Do you want to log error messages [[y|n]? y
You can decide if you want to show error messages to ...
The counter error messages are verbose and may reveal...
the system (e.g. full path of the data file or config...
error. If you are concerned with privacy or simply do...
error messages to browsers (you are confident that th...
perfectly), then answer n to the question. If you ans...
if there is an error or the access is denied, the vis...
broken image (browser default).
* Do you want to show error messages to browsers [[y|n]? y
Created conf file "count.cfg"
Please look at it, you might want to edit it!
===> Installing for wwwcount-2.5_2
===> Generating temporary packing list
===> Checking if www/wwwcount already installed
cd /usr/ports/www/wwwcount/work/wwwcount2.5; yes "" | ./...
*** You are installing Counter as root ***
--------------------------------------------------------...
Your configuration is shown below. You are only allowed ...
cgi-bin directory. If you want to change it, edit the fi...
and change the variable CGIBIN_DIR to the appropriate di...
anything else.
cgi-bin directory = /usr/local/www/apache22/cgi-bin/
conf directory = /usr/local/etc/Counter/conf
conf file to install= count.cfg
digit directory = /usr/local/lib/Counter/digits
data directory = /usr/local/etc/Counter/data
log directory = /var/log
log file = Counter.log
RGB file to install = ./data/rgb.txt
--------------------------------------------------------...
Press Control-C to abort
Continue [y|n]? proceeding...
Now if you know what user and group id child processe...
server use, I can change the ownership and access per...
accordigly. If you do not know, they are usually defi...
file httpd.conf with User and Group. I suggest create...
user and group say httpd and set the User and Group t...
*Do you know the user and group id of httpd' child proce...
user id of httpd's child process [nobody]:? *Enter grou...
process [nogroup]:? installing Count.cgi->/usr/local/www...
installing count.cfg->/usr/local/etc/Counter/conf
installing sample datafile ./data/data/sample.dat->/usr/...
installing rgb.txt->/usr/local/lib/Counter
installing Counter.log->/var/log
chown: nobody.nogroup: Invalid argument
installing image strip for digit style A->/usr/local/lib...
installing sample image peng.gif->/usr/local/lib/Counter...
installing image strip for digit style B->/usr/local/lib...
installing strip image for digit style C->/usr/local/lib...
installing strip image for digit style D->/usr/local/lib...
installing sample image lenna.gif->/usr/local/lib/Counte...
installing strip image for digit style E->/usr/local/lib...
installing image foo.gif in E->/usr/local/lib/Counter/d...
installing image yeehaw.gif in A->/usr/local/lib/Counte...
installing strip image for digit style cd->/usr/local/li...
installing strip image for digit style cdr->/usr/local/l...
installing strip image for digit style cdd->/usr/local/l...
installing strip image for digit style bang->/usr/local/...
installing the mirroring script
cd /usr/ports/www/wwwcount/work/wwwcount2.5/utils/extdgt...
root -g wheel -m 555 extdgts /usr/local/bin;
cd /usr/ports/www/wwwcount/work/wwwcount2.5/utils/mkstri...
root -g wheel -m 555 mkstrip /usr/local/bin; install -...
mkstrip.1 /usr/local/man/man1; install -o root -g whee...
mkstrip.sh /usr/local/lib/Counter/digits
===> Compressing manual pages for wwwcount-2.5_2
===> Registering installation for wwwcount-2.5_2
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: