ปัญหาจุกจิกจะหมดไปไหมครับ ถ้าเปลี่ยนจาก control panel noname มาใช้ยี่ห้อดี ๆ

คือว่าผมได้เช่า dedicated server กับ godaddy แล้วมีปัญหาจุกจิกเยอะแยะเลยน่ะครับ อาจจะไม่เรียกว่าเป็นปัญหาก็ได้ แต่ผมเซ็ทไม่เป็นมากกว่าเพราะพึ่งใช้งาน dedicated server เป็นครั้งแรก เพราะว่าปกติใช้ web hosting ทั่วไปแล้วมันไม่มีปัญหาพวกนี้น่ะครับ อย่างเช่น

1.ftp ช้ามาก ๆ ขึ้น error “PASV failed, trying port” อัพโหลด 3-4 ไฟล์แล้วก็หลุด แต่ถ้าปิด firewall จะเข้า ftp ได้อย่างราบรื่นเลย ไม่รู้ผมเซ็ทตรงไหนผิด ใน firewall ก็เปิด port 20-21 แล้ว
2.เวลาทำเว็บภาษาไทย ต้องคลิ๊กขวาเลือก encoding ตลอด ทั้ง ๆ ที่กำหนดใน meta แล้ว แต่หาข้อมูลในบอร์ดบอก server ตั้ง default charset เป็น utf 8 ไว้ ต้องไปเซ็ทใหม่
3. ตอนนี้ทำให้เวลาผมจะอัพโหลดไฟล์ ซึ่งทำบ่อยมาก ต้องปิด firewall ตลอด จนบางทีก็ลืมเปิดเลย มันอันตรายมากหรือป่าวครับ

ที่เกิดปัญหาเนี่ย ตอนนี้ผมใช้ control panel ฟรี ของ godaddy คือ simple control panel ถ้าหากผมจะไปเช่าเป็น plesk เพิ่มเนี่ย พวกค่าต่าง ๆ ที่ทำให้เกิดปัญหาด้านบนนี้จะหายไปหรือป่าวครับ หรือว่าถึงจะใช้ plesk เราก็ต้องไปแก้ไขค่าต่าง ๆ เองอยู่ดีครับ

firewall เปิดแค่ port 20,21 ไม่พอครับ
ต้องเปิด related port จาก port 21 ด้วย

วิธีเปิด port ที่ related กับ port 21 นี่ต้องทำอย่างไรหรอครับ ต้องสังเกตเอาเอง หรือว่ามีฟังชั่นให้ใช้ครับ

เพราะว่าใน control panel ของผม มันให้เราใส่ค่าไปเลยว่าจะเปิด port อะไรน่ะครับ

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

http://slacksite.com/other/ftp.html

ส่วนวิธีทำคงต้องรอผู้เชี่ยวชาญมาตอบครับ

  • ตอนอัพลองเปลี่ยนเป็น active หรือยังคะ (เซต passive ออก)
  • ลองแก้ใน apache

จาก http://www.opentle.org/th/node/711 ครับ

1) Active ftp.

This involves a connection INbound from port 20 on the remote machine, to a local port

passed over the ftp channel via a PORT command. The ip_conntrack_ftp module recognizes

the connection as RELATED to the original outgoing connection to port 21 so we don’t

need NEW as a state match.

iptables -A INPUT -p tcp --sport 20 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -p tcp --dport 20 -m state --state ESTABLISHED -j ACCEPT

2) Passive ftp.

This involves a connection outbound from a port >1023 on the local machine, to a port >1023

on the remote machine previously passed over the ftp channel via a PORT command. The

ip_conntrack_ftp module recognizes the connection as RELATED to the original outgoing

connection to port 21 so we don’t need NEW as a state match.

iptables -A INPUT -p tcp --sport 1024:65535 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --sport 1024:65535 --dport 1024:65535 -m state --state ESTABLISHED,RELATED -j ACCEPT

คำสั่งมันน่ะนะครับ ^^" เอาเฉพาะที่ไม่มี # นำหน้าก็พอ