1412 https://xvlnw.com I'm on my way Tue, 21 Feb 2023 12:33:09 +0000 th hourly 1 https://wordpress.org/?v=5.5.13 DirectAdmin กำหนดเวอร์ชั่นของ PHP ตามที่เราต้องการ https://xvlnw.com/topic/968 Tue, 21 Feb 2023 12:33:05 +0000 https://xvlnw.com/?p=968 สำหรับใครที่ build php แล้วไม่สามารถดาวน์โหลดไฟล์จาก File Server ของทาง DirectAdmin ได้ เนื่องจากทาง DirectAdmin ลบ PHP เวอร์ชั่นเก่าออกไป ทำให้ไม่สามารถโหลดได้ วิธีแก้ไขคือ กำหนดเวอร์ชั่นของ PHP ให้เป็นเวอร์ชั่นที่มีอยู่ใน File server ของทาง DirectAdmin เช็คได้ที่ https://files-sg.directadmin.com/s…

The post DirectAdmin กำหนดเวอร์ชั่นของ PHP ตามที่เราต้องการ first appeared on 1412.]]>
สำหรับใครที่ build php แล้วไม่สามารถดาวน์โหลดไฟล์จาก File Server ของทาง DirectAdmin ได้ เนื่องจากทาง DirectAdmin ลบ PHP เวอร์ชั่นเก่าออกไป ทำให้ไม่สามารถโหลดได้ วิธีแก้ไขคือ กำหนดเวอร์ชั่นของ PHP ให้เป็นเวอร์ชั่นที่มีอยู่ใน File server ของทาง DirectAdmin เช็คได้ที่ https://files-sg.directadmin.com/services/custombuild/

cd /usr/local/directadmin/custombuild
echo "php74:7.4.33:" >> custom_versions.txt
./build php n
The post DirectAdmin กำหนดเวอร์ชั่นของ PHP ตามที่เราต้องการ first appeared on 1412.]]>
Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist https://xvlnw.com/topic/961 Thu, 08 Dec 2022 11:36:33 +0000 https://xvlnw.com/?p=961 CentOS 8 ใช้คำสั่ง yum update ไม่ได้ ขึ้น Error ดังนี้ วิธีการแก้ไข ใช้คำสั่งด้านล่างนี้

The post Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist first appeared on 1412.]]>
CentOS 8 ใช้คำสั่ง yum update ไม่ได้ ขึ้น Error ดังนี้

Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

วิธีการแก้ไข ใช้คำสั่งด้านล่างนี้

dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos

The post Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist first appeared on 1412.]]>
General error: 1709 Index column size too large. The maximum column size is 767 bytes https://xvlnw.com/topic/956 Wed, 07 Dec 2022 15:17:13 +0000 https://xvlnw.com/?p=956 SQLSTATE[HY000]: General error: 1709 Index column size too large. The maximum column size is 767 bytes สำหรับใครที่สร้าง Indexing แล้วเจอปัญหานี้อยู่ ให้ทำการตั้งค่า my.ini หรือ my.cnf โดยกำหนดค่านี้ลงไป จากนั้นทำการ Restart MySQL/MariaDB แล้วลองดูอีกทีนะครับ

The post General error: 1709 Index column size too large. The maximum column size is 767 bytes first appeared on 1412.]]>
SQLSTATE[HY000]: General error: 1709 Index column size too large. The maximum column size is 767 bytes

สำหรับใครที่สร้าง Indexing แล้วเจอปัญหานี้อยู่ ให้ทำการตั้งค่า my.ini หรือ my.cnf โดยกำหนดค่านี้ลงไป

innodb-default-row-format=dynamic

จากนั้นทำการ Restart MySQL/MariaDB แล้วลองดูอีกทีนะครับ

The post General error: 1709 Index column size too large. The maximum column size is 767 bytes first appeared on 1412.]]>
DirectAdmin กำหนดเวอร์ชั่นของ Nginx เอง https://xvlnw.com/topic/950 Wed, 30 Nov 2022 15:45:52 +0000 https://xvlnw.com/?p=950 Nginx 1.21.6 เป็นเวอร์ชั่นที่สามารถใช้งานกับ srcache + redis cache ได้ https://xvlnw.com/nginx-1.21.6.tar.gz

The post DirectAdmin กำหนดเวอร์ชั่นของ Nginx เอง first appeared on 1412.]]>
cd /usr/local/directadmin/custombuild echo "nginx:1.21.6:" >> custom_versions.txt ./build "nginx"

Nginx 1.21.6 เป็นเวอร์ชั่นที่สามารถใช้งานกับ srcache + redis cache ได้

https://xvlnw.com/nginx-1.21.6.tar.gz

The post DirectAdmin กำหนดเวอร์ชั่นของ Nginx เอง first appeared on 1412.]]>
DirectAdmin เด้งหลุด Login as User https://xvlnw.com/topic/941 Thu, 25 Aug 2022 06:19:16 +0000 https://xvlnw.com/?p=941 สำหรับ DirectAdmin ที่ล็อคอินด้วยสิทธิ์ admin และเข้าไปที่ Login as User อีกที จะมีอาการเด้งหลุดกลับมาที่สิทธิ์ admin บ่อยมากๆ ให้ทำการเพิ่มค่านี้ลงใน directadmin.conf แล้ว Restart DirectAdmin

The post DirectAdmin เด้งหลุด Login as User first appeared on 1412.]]>
สำหรับ DirectAdmin ที่ล็อคอินด้วยสิทธิ์ admin และเข้าไปที่ Login as User อีกที จะมีอาการเด้งหลุดกลับมาที่สิทธิ์ admin บ่อยมากๆ ให้ทำการเพิ่มค่านี้ลงใน directadmin.conf แล้ว Restart DirectAdmin

session_cookie_multiplier=24
The post DirectAdmin เด้งหลุด Login as User first appeared on 1412.]]>