แก้ encoding ของ template เป็น utf-8 ครับ
nano -w /usr/local/directadmin/data/skins/enhanced/lang/en/lf_standard.html
แก้ ตรง
LANG_ENCODING
แก้ encoding ของ template เป็น utf-8 ครับ
nano -w /usr/local/directadmin/data/skins/enhanced/lang/en/lf_standard.html
แก้ ตรง
LANG_ENCODING
แก้ /etc/hosts และ /etc/sysconfig/network
แล้ว reboot ซักรอบ
ตัวอย่าง
nano /etc/hosts 192.168.1.1 server.domain.com server
nano /etc/sysconfig/network HOSTNAME=server.domain.com
passwd root
copy file ข้าม Server ที่เป็น Linux ด้วยกันทั้งคู่ หรือไปยังที่อื่น
ลอง คำสั่ง rsync หรือ rpc ดูนะครับ
ถามจากคุณพี่ google
1. scp (secure copy)
รูปแบบที่แนะนำ
scp filename [email protected]:/path/
เช่น scp id_rsa.pub [email protected]:/home/dumper/ เป็นต้น
สำหรับ กรณีที่ต้องการ copy เป็น folder ให้ zip folder ก่อน โดยการใช้
2. คำสั่ง tar
เช่น tar -cvf bk20080823.tar 20080823
c คือ สร้างไฟล์ tar ขึ้นมา
v คือ ให้แสดงชื่อไฟล์ที่กำลัง zip
f คือ ตำแหน่งที่ต้องการสร้างไฟล์ tar
bk20080523.tar คือ ชื่อไฟล์ที่เกิดจากการ zip ด้วยคำสั่ง tar
แค่นีก็ได้ไฟล์ที่ zip แล้ว พร้อมจะส่งไปยังที่อื่นได้แล้วค่ะ และใครที่ต้องการ backup files ก็สามารถนำไปประยุกต์ใช้ได้ด้วย
ถ้าคุณใช้ linux ก็ดู manual แบบเต็มๆ เลยด้วยคำสั่ง man scp หรือถ้าขี้เกียจดู ก็เดี๋ยวจะยกตัวอย่างไว้สัก 3 อัน ง่ายๆ ไม่ซับซ้อน ที่ผมใช้บ่อย
[1] scp /path/to/file/myLocalFile.tgz [email protected]:/home/dumper/myBackUpDir/
จะเป็นการ upload ไฟล์จาก local ขึ้นไปเก็บไว้ที่ server ด้วยชื่อเดียวกัน
[2] scp [email protected]:/home/dumper/myTmpBackUpDir/myServerFile.tgz /path/to/file/myServerFile.tgz
จะเป็นการดาวน์โหลดไฟล์จาก server ลงมาไว้ที่ local ด้วยชื่อเดียวกัน
[3] scp [email protected]:/home/dumper/myTmpBackUpDir/file1.tgz /path/to/file/file2.tgz
จะเป็นการดาวน์โหลดไฟล์จาก server ลงมาไว้ที่ local โดยเปลี่ยนชื่อไฟล์ด้วย สามารถใช้ได้กับทั้งข้อ [1] และ [2]
copyy ทั้งโฟลเดอร์
scp -r [email protected]:/home/miguel/ [email protected]:/home/miguel/
แก้ไข /ect/httpd/conf/httpd.conf
เพิ่ม Mod status ลงไป ล่างสุดเลย
<Location /server-status>
SetHandler server-status
Order Deny,Allow
#Deny from all
Allow from all
</Location>
ExtendedStatus On
เซฟไฟล์ แล้ว รีสตาร์ท httpd จากนั้นเข้าดูผลที่ http://xxx.xxx.xxx.xxx/server-status
ใน da จะมี conf ไฟล์ให้แล้วที่ /etc/httpd/conf/extra/httpd-info.conf
change user (directadmin)
cd /usr/local/directadmin/scripts
./change_username.sh olduser newuser
Solutions: Change and Update Time Zone (Bangkok ICT) on CentOS/Debian or other Linux
rm -f /etc/localtime ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime Update Timezone (CentOS)
aptitude -y install ntpdate ntpdate pool.ntp.org
ลบ Mail Queue Administration (กรณีลบผ่าน DA ไม่ได้)
cd /var/spool/exim/input && ls | xargs rm -rf
ปรับแต่ง Apache
/etc/httpd/conf/extra/httpd-default.conf
/etc/httpd/conf/extra/httpd-mpm.conf
start/stop/restart Apache
/etc/init.d/httpd start
/etc/init.d/httpd stop
/etc/init.d/httpd restart