ปัญหา AutoSSL ของ cPanel หมดอายุแล้วไม่สามารถต่ออายุได้ ทางแก้ปัญหา เปลี่ยน Providers มาใช้ SSL ของ Let's Encrypt ซึ่งก็ฟรีเหมือนกันครับ โดยอายุการใช้งาน 90 วันเหมือนกัน วิธีการติดตั้ง 1. login ssh ด้วย root แล้ว run คำสั่ง /scripts/install_lets_encrypt_autossl_provider 2. จากนั้นให้เข้า cPanel/WHM ไปที่ Home »SSL/TLS »Manage AutoSSL แล้วเลือก AutoSSL Providers เป็น Let’s Encrypt™ ตรง Terms of Service ให้ check box ทั้ง 2 ช่องแล้วกด save 3. จากนั้นให้ไปตรง Options แล้ว check box ตรง Allow AutoSSL to replace invalid or expiring non-AutoSSL certificates. กด save 4. จากนั้นให้ไปที่ Manage Users เลือก user ที่ต้องการจะติดตั้ง ssl แล้วกดทำการติดตั้ง หรือถ้าต้องการเปลี่ยนมาใช้ทุก users ให้กดตรง Run AutoSSL For All Users ได้เลยครับ สาเหตุของปัญหา เนื่องจากเมื่อเปิดใช้งาน free SSL comodo ผ่านทาง cpanel จะมีอายุการใช้งาน 90 วัน ซึ่งจะต้องต่ออายุก่อนที่จะหมดอายุ 15 วัน ถ้าไม่ต่ออายุจะทำให้ไม่สามารถใช้งานได้ อ้างอิง : https://forums.cpanel.net/threads/cpanel-comodo-auto-ssl-renewal-after-90-days.592631/
ปัญหา ช่องโหว่เป็นระดับ critical : Remote Code Execution ทำให้แฮกเกอร์ ที่ไม่จำเป็นต้องล็อกอิน สามารถยึดเครื่องเซิร์ฟเวอร์ได้จากการต่อเข้า SMTP TCP/25 เวอร์ชั่น 4.88 / 4.89 การแก้ไขชั่วคราว แก้ไขค่า chunking_advertise_hosts ให้เป็นค่าว่าง chunking_advertise_hosts = ทั้งนี้ต้องทำผ่าน command line เพราะหากทำผ่าน UI ใน WHM จะไม่ผ่านการตรวจ Syntax ทำให้ตั้งค่าว่างไม่ได้ การแก้ไขถาวร รอการ update exim เป็น 4.90 ปัจจุบันเป็น 4.89-3
ปัญหา เมื่อทำการ Login เข้า Admin ของระบบ Magento ไม่ได้ Error ที่แสดง SQLSTATE[HY000]: General error: 144 Table './fashop_magento/mg_admin_role' is marked as crashed and last (automatic?) repair วิธีการแก้ไข ให้ทำการ repaire database ผ่าน WHM แต่หากทำแล้วไม่สามารถแก้ไขปัญหาได้ต้องทำผ่าน SSH *** ก่อนทำถ้าไม่แน่ใจให้ทำการ Backup ตัว Database ลูกค้าไว้ก่อนด้วยเสมอ*** 1. ทำการเข้าไปที่ Path ของ Database ตัวที่มีปัญหา [root@cloudvps ~]# cd /var/lib/mysql/fashop_magento/ 2. ทำการรันคำสั่ง repair table ที่มีปัญหา [root@cloudvps fashop_magento]# myisamchk -r -v mg_admin_role หากไม่สามารถทำการ repair ได้โดยมี Error ด้านล่าง [root@cloudvps fashop_magento]# myisamchk -r -v mg_admin_role - recovering (with sort) MyISAM-table 'mg_admin_role' Data records: 19 myisamchk: error: Can't create new tempfile: 'mg_admin_role.TMD' MyISAM-table 'mg_admin_role' is not fixed because of errors Try fixing it by using the --safe-recover (-o), the --force (-f) option or by not using the --quick (-q) flag ให้ทำการตรวจสอบตัว Table ว่าผิดปกติยังไง [root@cloudvps fashop_magento]# ls -al mg_admin_role* -rw-rw---- 1 mysql mysql 8882 Oct 16 02:24 mg_admin_role.frm -rw-rw---- 1 mysql mysql 656 Dec 11 02:07 mg_admin_role.MYD -rw-rw---- 1 mysql mysql 4096 Dec 13 09:18 mg_admin_role.MYI -rw-rw---- 1 mysql mysql 0 Dec 12 02:26 mg_admin_role.TMD จะเห็นว่ามี table ที่เป็น .TMD ที่มีขนาด 0 byte อยู่ให้ทำการลบทิ้ง [root@cloudvps fashop_magento]# rm mg_admin_role.TMD rm: remove regular empty file `mg_admin_role.TMD'? y จากนั้นให้ทำการรันคำสั่งเพื่อทำการ repair table อีกครั้ง [root@cloudvps fashop_magento]# myisamchk -r -v mg_admin_role - recovering (with sort) MyISAM-table 'mg_admin_role' Data records: 19 - Fixing index 1 - Searching for keys, allocating buffer for 34 keys - Dumping 19 keys - Fixing index 2 - Searching for keys, allocating buffer for 20 keys - Dumping 19 keys - Fixing index 3 - Searching for keys, allocating buffer for 20 keys - Dumping 19 keys จะเห็นว่าสามารถทำการ repair table ได้สำเร็จ
ปัญหา yum update error root@netway07 [~]# yum update lvemanager pam_lve lve-wrappers bsock --enablerepo=cloudlinux-updates-testing rpmdb: Thread/process 281831/140631575533312 failed: Thread died in Berkeley DB libraryerror: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recoveryerror: cannot open Packages index using db3 - (-30974)error: cannot open Packages database in /var/lib/rpmCRITICAL:yum.main: Error: rpmdb open failed ทางแก้ปัญหา ให้ทำการ run คำสั่ง root@netway07 [~]# yum clean root@netway07 [~]# rm -f /var/lib/rpm/__db.* root@netway07 [~]# rpm --rebuilddb root@netway07 [~]# yum update lvemanager pam_lve lve-wrappers bsock --enablerepo=cloudlinux-updates-testing สาเหตุของปัญหา rpmdb เสียหาย ต้องทำการ rebuild rpmdb ขึ้นมาใหม่ ถึงจะ run yum update ได้ครับ
ปัญหา ไม่สามารถเข้าใช้ Mailling list Bug in Mailman version 2.1.23 ทางแก้ปัญหา ให้ทำการ run command ตามด้านล่างนี้ครับ /usr/local/cpanel/scripts/check_cpanel_rpms --fix /scripts/fixmailman /scripts/restartsrv_mailman --stop /scripts/restartsrv_mailman --start สาเหตุของปัญหา เป็น bug ที่อาจจะเกิดขึ้นได้หลังจากมีการอัพเดท cpanel จากเวอร์ชั่นเก่าไปเวอร์ชั่นใหม่