Archive for July, 2010

Kill user

kill หมดเหลือ root

who | awk ‘{ printf ("%s",$1 "\n"); }’| grep -v root | xargs -I {} -t pkill -u $1{}

pkill -u username

skill -KILL -u username

VPS 256 MB Debian 5.0.5 spacerich

อันนี้ http://www.spacerich.com/vps-Chicago-US.html

ลง ISPConfig 3

โปรแกรมที่ต้องเอาออก
Bind9
Senmail
smbfs
Samba-common
แก้ไข service SPAM+Virus
ลง PureFtp ใหม่

ปรับ php.ini memory_limit ไว้ 32 MB
ที่เหลือลอกตาม howtoforge

ใช้งานอยู่ปกติดี (เพราะไม่มีคนเข้า)
รัน blog 2 blog

แรมน้อยใช้สอยอย่างประหยัด เงินน้อยใช้สอยให้คุ้มค่า

Proftpd upload resume

เนื่องจาก upload file แล้ว resume ไม่ได้

error (fielzilla) append/restart not permitted, try again

แก้ไขโดย

#nano /root/ispconfig/isp/conf/proftpd_ispconfig.conf.master
###################################
#
# ISPConfig proftpd Configuration File
# Version 1.0
#
###################################

DefaultAddress 127.0.0.1
<!– BEGIN DYNAMIC BLOCK: vhost –>
<VirtualHost {IP}>
   DefaultRoot           ~
   IdentLookups          off
   ServerIdent on "FTP Server ready."
   AllowOverwrite        on
   AllowRetrieveRestart  on
   AllowStoreRestart     on
   Umask                 002
   {ANON_FTP}
</VirtualHost>
<!– END DYNAMIC BLOCK: vhost –>

เก็บไฟล์ไว้ที่นี่ด้วย กันลืม /ispconfig/isp/conf/customized_templates/

AllowRetrieveRestart — Allow clients to resume downloads
AllowStoreRestart — Allow clients to resume uploads

ลอกมาจาก

เปลี่ยนรหัสผ่าน awstats

password จาก admin ของเวบ

หน้าเข้า /stats  http://www.mtuser.com/stats

ถ้ามีการแก้ไขรหัส email/account password ของ stat จะไม่เปลี่ยนตามเพราะเป้นคนละตัวกัน

แก้ไขโดย

ลบไฟล์ .htpasswd ใน /var/www/webx/

/root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php

หรือรอรอบอัพเดท cron ตามปกติ

จบ

MusikCube

โปรแกรมฟังเพลง จัดคิว playlist ได้สะดวก

กินแรมประมาณ 13M