CentOS
DirectAdmin Installation and Configuration
เพิ่งติดตั้ง DirectAdmin บน CentOS5.3 เป็นครั้งแรกในชีวิต หลังจากที่ติดตั้งเสร็จก็มีสิ่งที่ต้องทำต่อ ตามนี้
ก่อนลง ลองเช็คเวลาและ timezone ต้องกำหนด timezone ให้เรียบร้อย บน CentOS สามารถใช้ system-config-date เพื่อกำหนด timezone ได้
Sync เวลากับ time server
หากไม่มี ntpdate ก็ติดตั้งด้วย
yum install ntp
หรือ
apt-get install ntpdate
กำหนดให้มีการ sync time จาก clock.nectec.or.th ด้วยการตั้งเวลาใน crontab
crontab -e
แล้วเพิ่มโค๊ดไว้ด้านล่างสุด
0 */4 * * * root ntpdate clock.nectec.or.th
Howto: Sync เวลากับใครและบ่อยแค่ไหนดี
หลังจากนั้นก็ดำเนินการติดตั้งและ config security ตามรายการ
Step Security Unix/Linux - ฉบับ DirectAdmin และ บทความน่าอ่านจาก ThaiHostTalk
iptables - ติดตั้งไฟร์วอลเสีย และ DirectAdmin iptables , Shoutcast - not test
Intrustion detection and prevention for Apache with mod-security - พยายามทำแล้ว แต่ยังไม่ได้ผล
ปิด allow _ url _ fopen โดยแก้ไข php.ini เปลี่ยนจาก on เป็น off
; Disable allow_url_fopen for security reasons allow_url_fopen = Off
แก้ไขค่า default mysql เป็น MYISAM , utf8unicodeci โดยแก้ไขในไฟล์ /etc/my.cnf
# Add by softganz<br /> # Set default engin to MYISAM # Set default collation to utf8_unicode_ci default-storage-engine=MYISAM collation-server = utf8_unicode_ci character-set-server = utf8
บทความดี ๆ เกี่ยวกับ DirectAdmin
โหลดเพลงฟรี
Little Bear
แจ้งลบหัวข้อ