แสดงกระทู้

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - golfreeze

Pages: 1 ... 67 68 [69] 70 71 ... 73
1021
Setting up bounding is easy with RHEL v4.0.

Step #1: Create a bond0 configuration file

Red Hat Linux stores network configuration in /etc/sysconfig/network-scripts/ directory. First, you
need to create bond0 config file:

# vi /etc/sysconfig/network-scripts/ifcfg-bond0   ###Append following lines to it: DEVICE=bond0
IPADDR=192.168.1.20
NETWORK=192.168.1.0
NETMASK=255.255.255.0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes     ####Replace above IP address with your actual IP address. Save file and exit to shell prompt.

Step #2: Modify eth0 and eth1 config files:

Open both configuration using vi text editor and make sure file read as follows for eth0 interface

#vi  /etc/sysconfig/network-scripts/ifcfg-eth0    ##Modify/append directive as follows: DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=noneOpen eth1 configuration file using vi text editor:

# vi /etc/sysconfig/network-scripts/ifcfg-eth1

###Make sure file read as follows for eth1
interfaceEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=noneSave file and exit to shell prompt.

Step # 3: Load bond driver/module

Make sure bonding module is loaded when the channel-bonding interface (bond0) is brought up. You
need to modify kernel modules configuration file:

# vi /etc/modprobe.confAppend following two
lines:alias bond0 bonding
options bond0 mode=balance-alb miimon=100Save file and exit to shell prompt. You can learn more
about all bounding options in kernel source documentation file (click here to read file online).

Step # 4: Test configuration

First, load the bonding module:# modprobe bondingRestart networking service in order to bring up
bond0 interface:# service network restartVerify everything is working:# less
/proc/net/bonding/bond0Output:

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:c6:be:59

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:c6:be:63

List all interfaces:# ifconfigOutput:

bond0 Link encap:Ethernet HWaddr 00:0C:29:C6:BE:59
inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:2804 errors:0 dropped:0 overruns:0 frame:0
TX packets:1879 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:250825 (244.9 KiB) TX bytes:244683 (238.9 KiB)

eth0 Link encap:Ethernet HWaddr 00:0C:29:C6:BE:59
inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fec6:be59/64 Scope:Link
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:2809 errors:0 dropped:0 overruns:0 frame:0
TX packets:1390 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:251161 (245.2 KiB) TX bytes:180289 (176.0 KiB)
Interrupt:11 Base address:0x1400

eth1 Link encap:Ethernet HWaddr 00:0C:29:C6:BE:59
inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fec6:be59/64 Scope:Link
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:502 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:258 (258.0 b) TX bytes:66516 (64.9 KiB)
Interrupt:10 Base address:0x1480

1022
พอดี วันก่อน เครื่อง nfs server ได้ reboot ใหม่ครับเพราะ remote เข้าไม่ได้ แล้วก็ reboot เครื่อง nfs
client ตาม

เมื่อ nfs client boot มาแล้วจะทำการ mount ไปที่ path ของ nfs server แล้วเกิด error แบบนี้ครับ
Mounting NFS file systemsNFS Portmap: RPC: Program not registered
เป็นเพราะ socket มันค้างครับเลย ทำให้ client mount ไม่ได้
ก็สามารถแก้ได้โดย
รัน command ที่เครื่อง server ก่อนครับ
#killall -TERM nfsd
#killall -hup mountd
#nfsd -u -t -n 4

-----------------------------------------------
รัน command ที่เครื่อง client
#mount hybird.local:/usr/local/www/apache22/data /usr/local/www/apache22/data
#mount hybird.local:/usr/local/www/apache22/data/www /usr/local/www/apache22/data/www

แล้วทำการ restart service squid 1 ครั้งครับ
#/usr/local/etc/rc.d/squid restart

1023
พอดีวันนี้ ว่าจะลง debian ใหม่ เลยใช้ server linux โหลดมาครับ
#wget ftp.freedebain.com/debian-40r3-i386-CD-1.iso
ลง ตัว write packet ใน linux ผมใช้
#apt-get install cdrecord

เริ่ม write
#cdrecord dev=0,0,0 driveropts=burnfree -dao -overburn -v debian-40r3-i386-CD-1.iso

เสร็จแล้วก็ mount มาดูไฟล์ครับ
#mkdir -p /mnt/cdrom
#mount -t iso9660 /dev/cdrom /mnt/cdrom

เหอๆ เรียบร้อย อิอิ

any problems feel free to contact
golfreeze[at]packetlove.com

1024
พอดีมี โจทย์มาให้ก็คือ ทำเป็น nat server ครับโดยที่

10.x.x.6 forward packet ทุกport ไปที่ 192.x.x.6
10.x.x.7 forward packet ทุกport ไปที่ 192.x.x.7

แล้วตัว load balance ก็ให้ส่ง packet เข้า
10.x.x.52 ส่ง load ไปที่ 192.x.x.52

เราก็ set ได้ดังนี้
เริ่มต้น ต้องสร้าง ip aliase ไว้ก่อนครับ ผมเลือกใช้เป็น debian เพราะเป็น linux ซึ่งมันใช้งานพวก
network ดีมากๆ อยู่แล้ว
#ifconfig eth0:0 10.x.x.6 netmask x.x.x.x up
#ifconfig eth0:0 10.x.x.7 netmask x.x.x.x up

เสร็จแล้วก็ทำ การเขียน rule ของ nat โดยใช้ iptables ครับ
##ขาเข้ามา
#iptables -t nat -A PREROUTING -j DNAT -i eth0 -d 10.x.x.6 --to 192.x.x.6
#iptables -t nat -A PREROUTING -j DNAT -i eth0 -d 10.x.x.7 --to 192.x.x.7

##ขาออกครับ
#iptables -t nat -A POSTROUTING -j SNAT -o eth0 -s 192.x.x.6 --to 10.x.x.6
#iptables -t nat -A POSTROUTING -j SNAT -o eth0 -s 192.x.x.7 --to 10.x.x.7

ทำการ forward traffic ที่เครื่อง nat server ด้วยนะครับผม
#echo 1 > /proc/sys/net/ipv4/ip_forward
#sysctl -p

1026
SPF (Sender Policy Framework ) เป็นส่วนเสริมของโพรโตคอลรับ-ส่งอีเมล์
ที่ช่วยให้ระบบเมล์ของผู้รับ สามารถตรวจสอบและปฏิเสธการรับเมล์จากแหล่งที่มีการ
ปลอมแปลงชื่อผู้ส่งได้ ซึ่งโดยส่วนใหญ่แล้ว อีเมล์ที่มีการปลอมชื่อผู้ส่งมักจะเป็นสแปม
ทั้งหลายนั่นเอง และเมล์ที่ไม่มีการปลอมแปลงชื่อผู้ส่ง ก็มักจะไม่ใช่สแปม

โดยปกติแล้วโพรโตคอล SMTP จะรับอีเมล์จากผู้ส่งทุกราย ซึ่งง่ายต่อการส่งอีเมล์ขยะ
จากบรรดาผู้ส่งสแปม โดยปลอมแปลงชื่อผู้ส่งเป็นอีกชื่อหนึ่ง ทำให้ยากต่อการตรวจสอบว่า
แท้จริงแล้วเมล์ฉบับนั้นถูกส่งมาจากที่ไหน และสามารถปลอมแปลงชื่อผู้ส่งเป็นบุคคล
ผู้รับให้ความเชื่อถือได้ง่าย เพื่อให้เมล์ฉบับนั้นมีโอกาสถูกเปิดอ่านมากขึ้น

SPF จึงเข้ามามีบทบาทในการกำหนดข้อมูลชนิดพิเศษใน DNS ซึ่งผู้ที่เป็นเจ้าของ
โดเมนสามารถระบุลงไปได้ว่า อีเมล์ที่ส่งจากโดเมนของตน จะถูกส่งออกจากเซิฟเวอร์เครื่องใด
ได้บ้าง เมื่อผู้รับได้รับอีเมล์จากโดเมนดังกล่าว ก็จะตรวจสอบว่าอีเมล์นั้นถูกส่งมาจากหมายเลข
ไอพีที่ระบุไว้จริงหรือไม่ หากไม่อยู่ในรายการไอพีที่ผู้ส่งได้ประกาศไว้
ก็สามารถปฏิเสธการรับเมล์ดังกล่าวได้

ในระบบ Antispam บางระบบอย่าง Spamassassin ไม่ได้ใช้ SPF ในการปฏิเสธการรับอีเมล์
ที่ผิดกฎ SPF โดยทันที แต่ใช้ SPF เป็นเกณฑ์อย่างหนึ่งในการหาค่าความเป็นสแปมของจดหมาย
ซึ่งหากจดหมายฉบับใดตรวจแล้วได้ผลเป็น SPF_PASS ก็จะมีคะแนนความเป็น spam ลดลง
แต่ถ้าจดหมายฉบับได้ได้ผลเป็น SPF_FAIL ก็จะมีคะแนนเพิ่มขึ้น ซึ่งคะแนนนี้จะถูกนำไปรวมกับ
กฎข้ออื่นๆที่ออกแบบไว้ในระบบเพื่อหาคะแนนรวมสุดท้ายเป็นตัวชี้ขาดว่าอีเมล์ฉบับนั้นเป็นสแปมหรือไม่

SPF กำลังเป็นที่นิยมอย่างมากในปัจจุบัน สินค้า Antispam ทั้งในและต่างประเทศต่างก็นำ SPF เข้ามา
ใช้ในระบบ และโฆษณาให้ผู้ซื้อทราบว่าสินค้าของตนมีเทคโนโลยี SPF นี้อยู่ภายใน อย่างไรก็ดี
จากข้อมูลสถิติในระบบ MailCleaner กลับพบว่า อีเมล์ที่ผ่านการตรวจสอบด้วย SPF กลับเป็น
จดหมายขยะจำนวนมากถึง 3800 ฉบับต่อสัปดาห์ จากอีเมล์ที่ผ่านการตรวจสอบด้วย SPF
จำนวน 1 แสนฉบับต่อสัปดาห์ ซึ่งเป็นอัตราที่มากพอสมควรสำหรับกฎที่มีผลถึงขนาดปฏิเสธการรับอีเมล์
สาเหตุที่เป็นเช่นนี้เพราะผู้ส่งสแปมในประเทศไทยจำนวนไม่น้อย ใช้ฟรีอีเมล์ที่มีการกำหนด SPF
ในการส่งสแปม อีเมล์เหล่านี้จึงมาจากเครื่องเซิฟเวอร์ที่ถูกต้องตามหมายเลขไอพีที่ประกาศไว้
ซึ่งพฤติกรรมเช่นนี้แตกต่างกับผู้ส่งสแปมในต่างประเทศที่ใช้วิธีตั้งเมล์เซิฟเวอร์ขึ้นเองเพื่อใช้
ในการส่งสแปมโดยเฉพาะ การใช้ SPF ในต่างประเทศจึงมีประโยชน์ในการป้องกัน spam
ได้มากกว่า ในประเทศไทย นอกจากนี้เมล์ server ในประเทศไทยจำนวนมากก็ยังไม่ได้
ตั้งค่าใน DNS ในส่วนของ SPF ทำให้เมล์ขององค์กรนั้นๆ มีโอกาสถูกตรวจสอบผิดเป็นสแปม
มากขึ้นอีกด้วย

เพื่อให้ SPF สามารถนำมาใช้งานในประเทศไทยอย่างได้ประโยชน์สูงสุด
การรณรงค์ให้เมล์เซิฟเวอร์แต่ละแห่งตั้งค่า SPF ใน DNS เป็นสิ่งที่ควรกระทำควบคู่ไปกับ
การเข้มงวดกวดขันของผู้ให้บริการฟรีอีเมล์ต่างๆ แต่ในมุมมองของผู้ให้บริการป้องกันจดหมายขยะ
ซึ่งอยู่ในฝั่งผู้รับอีเมล์แล้ว การใช้ SPF แบบเต็มที่ตามก้นฝรั่งยังเป็นสิ่งที่ไม่ควรกระทำ
แต่ควรใช้อย่าง ระมัดระวังโดยการปรับลดความสำคัญของกฎที่เกี่ยวข้องกับ SPF ลงมาในระดับหนึ่ง
ให้เหมาะสมกับอัตราความแม่นยำของมัน ณ เวลานี้ หรือเพิ่มข้อกำหนดให้ไม่คิดคะแนน SPF
ให้กับเมล์ที่มาจากฟรีอีเมล์ที่มีผู้ใช้ในการส่งสแปม เป็นต้น

ขอขอบคุณ ข้อมูลจาก เว็บ : http://mailcleaner.in.th/

1027
วันก่อนลง Debian 4.0 เพื่อไปแข่งงาน Airraid ครับ
รายละเอียดที่

http://golfreeze.packetlove.com/guyblog/?p=25#more-25

ขั้นตอนแรกก็ ใส่ sources.list ครับดังนี้

deb http://202.29.6.10/pub/debian/etch main
deb-src http://202.29.6.10/pub/debian/etch main


#deb http://mirror.in.th/debian/etch main
#deb-src http://mirror.in.th/debian/etch main

deb http://202.29.6.10/pub/debian-security/etch/updates main contrib
deb-src http://202.29.6.10/pub/debian-security/etch/updates main contrib

#deb http://ftp.psu.coe.ac.th/debianetch main
#deb-src http://ftp.psu.coe.ac.th/debianetch main

deb http://ftp.thaios.net/debian/etch main
deb-src http://ftp.thaios.net/debian/etch main

----------------------------------------------------------------------------
เริ่มลุยเลย
#apt-get install xorg*
#apt-get install gnome*
#apt-get install xserver-xorg*

เสร็จแล้ว

ถ้าใครได้ใช้ remote-desktop เพื่อจะ remote ต่อไปที่ VNC หรือ remote-desktop ของ window ก็ต้องลง

tsclient ครับ เป็น remote desktop ที่ใช้ใน gnome


#apt-get install tsclient

เลือกใช้ Protocol เป็น RDP สำหรับ remote-desktop ใน window น่ะครับ


และถ้าใครอยากลอง 3ddesktop ที่เป็นหน้าจอ หรูหน่อยก็
#apt-get install 3ddesktop
อิอิ

golfreeze[at]packetlove.com

1028
วันนี้ ลองลง yum ดูครับใน redhat 4 enterprise

ก่อนอื่นต้องมี package เหล่านี้ ก่อน

เราต้องโหลดไฟล์มาก่อนครับ ข้อควรปฏิบัติ ควรใช้ ให้เหมาะสมกับ python ที่รองรับ ใน os version นั้นๆ
ด้วยน่ะครับ

Install all the rpms:
rpm -Uvh {all rpm files}

The packages I used are:
yum-2.3.3-1.src.rpm
python-urlgrabber-2.9.6-1.src.rpm
python-sqlite-0.5.0-1.2.el4.rf.i386.rpm
python-elementtree-1.2.6-1.2.el4.rf.noarch.rpm
sqlite-2.8.16-1.2.el4.rf.i386.rpm
python-celementtree-1.0.2-1.2.el4.rf.i386.rpm

สำหรับพวกที่เป็น src.rpm ต้องมา จัดการโดย build มันก่อนครับ ให้มันมีอารมณ์ เหอๆ
#rpmbuild --rebuild {source-rpm-file}

ไฟล์ต่างๆ ผมหาโหลดจากเว็บนี้ ครับ มีครบเลย สำหรับตระกูล แพนกิล

http://dag.wieers.com/rpm/packages/

ลุยเลย

golfreeze[at]packetlove.com

1029
today I would like to show how to use "rsync" in server and client

อิอิ เริ่มต้นด้วยอังกฤษ หน่อยครับ จะได้ฝึกภาษา ด้วย พอดีวันนี้ นั่งเล่นทำ backup ข้อมูลให้
igetweb.com โดยใช้ rsync มาช่วยครับ ซึ่งตัว rsync จะดีกว่า พวก scp ก็คือว่า ถ้าฝั่ง server
มีการลบไฟล์อะไร หรือเพิ่มไฟล์เข้ามามันก็ทำการ sync ให้เรา ดังใจเรา ปราถนา และทำให้ file นั้นสดๆ ใหม่
อีกด้วยอิอิ

เริ่มต้นฝั่ง server ผมใช้เป็น Debian 4.0 ครับ
แล้วฝั่ง client เป็น Freebsd

เริ่มฝั่ง server โดย
ต้องการ syncronize ไดเรคทอรี่ /home/source ของเครื่อง server1.xxx.com
มายังไดเรคทอรี่ /home/dest ของเครื่อง mirror.xxx.com

ทำที่ทั้งสองเครื่อง server1.xxx.com และ mirror.xxx.com
ติดตั้งและปรับแต่ง rsync
# aptitude install rsync
# vi /etc/default/rsync

RSYNC_ENABLE=true

# dpkg-reconfigure rsync
ทำที่เครื่อง server1.example.com
เพิ่มผู้ใช้ชื่อ test
server1:# useradd -m -s /bin/bash test
( -m คือให้คัดลอกรูปแบบจากไดเรคทอรี่ /etc/skel/
-s คือให้ใช้เชลล์คือ /bin/bash )
ทำที่เครื่อง mirror.xxx.com
ทำการคัดลอก
mirror:# rsync -avz -e ssh test@server1.example.com:/home/source/ /home/dest/
<<<--- ใส่ค่า password ของ test

rsync จะทำการคัดลอกไฟล์ทั้งหมดใน /home/source ที่ test มีสิทธิในการอ่านทั้งหมด
มาที่ /home/dest ของเครื่อง mirror

หมายเหตุ
ตรวจสอบเนื้อที่การใช้ไฟล์ด้วยคำสั่ง
# cd /var/www
# du -c | grep total

Ref site : http://www.thaitux.info/node/94

1030
#####################
#Script FTP to another host.
#####################

#!/bin/sh
HOST="122.122.122.122"
USER="insertlogin"
PASSWD="insertpassword"
FILE="mydatabase.sql"
LOCATION="/Library/Webserver/Websites/localsite/mydatabase.sql"

ftp -n $HOST <<EOF
quote USER $USER
quote PASS $PASSWD

binary
#ดึงไฟล์มา
get  $FILE $LOCATION
#วางไฟล์
put  $FILE $LOCATION
quit
EOF

exit 0

1031
วันนี้ ผมลองรวบรวม trick ในการหา package จากในหัว เล็กๆ ได้คือ

ใน Freebsd
เข้าไปที่
#cd /usr/ports
#make search name=ชื่อpackage

ใน debian
#apt-cache search ชื่อpackage

#หมวกแดง + Centos
#yum search ชื่อpackage

อิอิ
golfreeze[at]packetlove.com

1032
สำหรับลูกค้า packetlove.com

สามารถใช้งาน squirrel mail แทนตัว webmail ตัวเก่าได้แล้วน่ะครับ
โดยเข้าไปที่

http://www.โดเมนของท่าน/squirrelmail

เมื่อกี้เพิ่งแก้ ปัญหาให้ ใช้งาน attach file ได้โดยแก้ที่

#cd /xxx/xxxxx/squirrelmail/config/
#vi config.php

เพื่อเข้าไปดู $attachment_dir

แล้วเข้าไป สร้าง folder ดังกล่าว แล้วเปลี่ยนให้เป็นสิทธิ์ของ apache ครับ

เท่านี้ ก็สามารถใช้งาน attachfile ใน squirrelmail ได้แล้ว

ถ้าเพื่อนๆ มีคำถามก็สอบถามได้น่ะครับ

1033
พอดีวันนี้ ได้ migrate mail ครับเลยเอาข้อมูลวิธี มาให้เพื่อนๆ พี่ๆ น้องๆ ดูหน่อยเผื่อจะเป็นประโยชน์
บ้าง

อิอิ
การใช้ imapcopy ในการ migrate mail ที่เป็น imap ครับโดยผ่าน perl module

ต้อง download imapcopy shell ก่อนครับโดยหาจาก google ก็ได้ชื่อ Golfinho-IMAPCopy-0.06.tar.gz
เริ่มต้นลง perl module
#perl -MCPAN -e shell
กระผมเลือกใช้ ค่า default ทั้งหมด
เสร็จแล้วทำการลง ตัว Bundle ครับ ในครั้งแรกที่มีการ ลง perl module
CPAN>install Bundle::CPAN

รอสักครู่ นานสองนาน เมื่อเสร็จแล้ว install IMAPClient Module
CPAN>install Mail::IMAPClient

ออกจาก cpan โดย
CPAN>quit
สั่งให้มัน updatedb
#updatedb
#locate IMAPCopy.pm

ทำการ copy IMAPCopy.pm_hack ไปทับไฟล์ IMAPCopy.pm ซึ่ง perl จะเรียกใช้งาน module นี้ครับ
แล้วเราก็เรียก script imapcopy
ถ้ามี user เดียวสั่งแบบนี้ เลยครับ
/usr/bin/imapcopy -from-host mail.xxx.com -from-login golfreeze -from-pass passxxx -to-host
localhost -to-login golfreeze@destination.com -to-pass passxxx -tmpdir /tmp -to-debug

ของผมมี migrate เยอะเลยใช้วิธีเขียน shell script ช่วยครับ
++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/bash
PATH=/sbin:/usr/sbin:/bin
export PATH

##Directory value

HOME=/mbox
USERLIST=/home/golf/imapcopy_only
ID=vmail
GID=mail


## Check user and create for dir user ##
if [ -s ${USERLIST}/userlist_seperate_test ] # if file size of new_account > 0
then
#lock account file
chown root ${USERLIST}/userlist_seperate_test
chmod 770 ${USERLIST}/userlist_seperate_test

while read account_dest
do
#Begin imapcopy change #account_ori and #account_dest
/usr/bin/imapcopy -from-host mail.xxx.com -from-login golfreeze -from-pass passxxx
-to-host
localhost -to-login golfreeze@destination.com -to-pass passxxx -tmpdir /tmp

done < ${USERLIST}/userlist_seperate_test

cat /dev/null > ${USERLIST}/userlist_seperate_test
chown root:root ${USERLIST}/userlist_seperate_test
chmod 770 ${USERLIST}/userlist_seperate_test

else
#nothing to do
exit
fi
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
สำหรับ ตัวแปร
account_ori = account ต้นทาง
account_dest = account ปลายทาง

1034
iftop คล้ายๆ กับ top ใน unix ครับ แต่ตัวนี้ จะเอาดู traffic ของ network ที่เข้ามาที่ server
###iftop
#apt-get install iftop

ใช้งานก็
#iftop

มี option ให้เลือกมากมาย
#man iftop ดูน่ะครับ

อีกตัวคือ

iptraf
#apt-get install iptraf

ดูปริมาณ traffic ที่วิ่งผ่าน การ์ดแลน ครับ
แจ่มดี อิอิ

ลองดูน่ะครับ

1035
เว็บนี้ ช่วยได้เยอะเลย

http://help.directadmin.com

มีเกือบทุกอย่าง

ผมลง webalizer เพิ่มครับ
wget -O /usr/local/bin/webalizer http://files.directadmin.com/services/freebsd6/webalizer
chmod 755 /usr/local/bin/webalizer

เสร็จแล้วไปเขียน ลง crontab ครับ
10 0 * * * root echo "action=tally&value=all" >>
/usr/local/directadmin/data/task.queue

แค่นี้แล้วลองเข้าดูเว็บ webalizer ในส่วนของ control panel ดูน่ะครับ

Pages: 1 ... 67 68 [69] 70 71 ... 73