Command : selectorctl selectorctl --list ใช้สำหรับลิสต์ เวอร์ชั่นของ php ว่ามีเวอร์ชั่นไหนบ้างที่ใช้งานได้[root@netway42 ~]# selectorctl --list4.4 4.4.9 /opt/alt/php44/usr/bin/php-cgi5.1 5.1.6 /opt/alt/php51/usr/bin/php-cgi5.2 5.2.17 /opt/alt/php52/usr/bin/php-cgi5.3 5.3.29 /opt/alt/php53/usr/bin/php-cgi5.4 5.4.45 /opt/alt/php54/usr/bin/php-cgi5.5 5.5.38 /opt/alt/php55/usr/bin/php-cgi5.6 5.6.36 /opt/alt/php56/usr/bin/php-cgi7.0 7.0.30 /opt/alt/php70/usr/bin/php-cgi7.1 7.1.18 /opt/alt/php71/usr/bin/php-cgi7.2 7.2.6 /opt/alt/php72/usr/bin/php-cgi selectorctl --list-users --version=xxx ใช้สำหรับลิสต์ user ว่ามี user คนไหนบ้างที่ใช้ php เวอร์ชั่นนี้[root@netway42 ~]# selectorctl --list-users --version=nativelugentcr,otccorth,nspm152,cppco,wyndham,wivillas,ctlinte,leitnerl,securervskin,welcome,uniocea,postel,mtscot,smtcctvc,seacoco,thaiser,progress1,maximum,oecbkk [root@netway42 ~]# selectorctl --list-users --version=5.6litrag,spinter,totalinno,groupaerowin,wanchai,saolakco,healthybgin,enducfef,ever,pumptogo,tgssecur,wanpenix,worldpar,adminlaw,actbevco,khaokorc,nlpoly,nkntacth selectorctl --current แสดงค่า php version ที่ใช้งานตอนนี้ ที่ตั้งเป็นค่า Default [root@netway42 ~]# selectorctl --current5.6 5.6.36 /opt/alt/php56/usr/bin/php-cgi selectorctl --list-extensions --version=5.3 แสดงค่า php extensions ของ version x.x ที่ใช้งานตอนนี้ว่าใช้อะไรบ้าง selectorctl --list-user-extensions --version=5.3 --user=user1 แสดงค่า php extensions ของ version x.x ของ user1 ที่ใช้งานตอนนี้ว่าใช้อะไรบ้าง [root@netway42 ~]# selectorctl --list-user-extensions --version=5.6 --user=pumptogo bcmathdomgdimapintlioncube_loaderjsonmbstringmcryptmysqlmysqli selectorctl --list-user-extensions --version=5.6 --user=user1 --all แสดงค่า php extensions ของ version x.x ของ user1 ที่ใช้งานตอนนี้ว่าใช้อะไรบ้าง ทั้งที่เปิดใช้งานและไม่ได้เปิดใช้งาน [root@netway42 ~]# selectorctl --list-user-extensions --version=5.6 --user=pumptogo --all- apcu- apm- ares+ bcmath- big_int- bitset- brotli- bz2_filter- dba- dbx+ dom- doublemetaphone- eio- enchant- fileinfo+ gd selectorctl --user-current --user=user1 แสดงค่าว่าตอนนี้ user คนนี้ใช้ php version อะไร[root@netway42 ~]# selectorctl --user-current --user=pumptogo5.6 5.6.36 /opt/alt/php56/usr/bin/php-cgi selectorctl --set-user-current=5.6 --user=user1 ตั้งค่า php version สำหรับ user [root@netway42 ~]# selectorctl --set-user-current=5.6 --user=maximum selectorctl --change-to-version=5.6 --version=native การเปลี่ยน php version ในที่นี้จะเป็นการเปลี่ยนทุก account ที่เป็น php version native จะเปลี่ยนเป็น php version 5.6 อ้างอิง : https://docs.cloudlinux.com/index.html?selectorctl.html
ปัญหา ออก internet inter ไม่ได้เป็นบางช่วงเวลา ไม่สามารถใช้คำสั่งที่เกี่ยวกับ network tool เช่น traceroute ได้ สาเหตุ สาเหตุมาจากมีบาง Account เขียน Code เรียกใช้งาน /usr/bin/host ในไฟล์ config.php วิธีแก้ปัญหาทีม TS1. แจ้งลูกค้าทำการแก้ไข Code เอาคำสั่ง '/usr/bin/host' ออก 2. ถ้าลูกค้าให้เราทำการแก้ไขให้ ก็ส่ามารถเข้าไปแก้ไขผ่าน File manager ใน cPanel ได้ วิธีแก้ปัญหาทีม SYSNOC หรือ ITS
To install Ksplice Uptrack, please run the following commands as root: - wget -N https://www.ksplice.com/uptrack/install-uptrack- sh install-uptrack b3ef39241a99154281afbcb55e29b42428e9a1e42e963c87e30942994e6cd835- uptrack-upgrade -y
To install KernelCare run: - curl -s https://repo.cloudlinux.com/kernelcare/kernelcare_install.sh | bash To check if patches applied run: - /usr/bin/kcarectl --info If you would like to run update manually: - /usr/bin/kcarectl --update To check current kernel compatibility with KernelCare use the following script by running: - curl -s https://raw.githubusercontent.com/iseletsk/kernelchecker/master/py/kc-compat.py | python
เริ่มต้นให้เราตรวจสอบ Public IP ปัจจุบันที่ใช้งานโดยตรวจสอบได้จาก http://checkip.org/ จากนั้นดำเนินการตามขั้นตอนดังนี้ 1. Login เข้า WHM ไปที่เมนู Plugins >> ConfigServer Security & Firewall 2. นำ Public IP ที่ได้ไปตรวจสอบที่ Search for IP 3. หาก IP นั้นติด Block ให้ทำการกดปุ่ม Unblock ได้เลย หมายเหตุ: สาเหตุการ Block IP นั้นจะมีข้อมูลบอกว่าสาเหตุเกิดจากอะไร ตัวอย่าง เช่น lfd: (pop3d) Failed POP3 login from IP lfd: (imapd) Failed IMAP login from IP lfd: (smtpauth) Failed SMTP AUTH login from IP