การตรวจสอบฟังก์ชันที่ถูกปิด

ใช้สคริปต์นี้เพื่อตรวจสอบว่ามีฟังก์ชันใดถูกปิดหรือไม่ รันใน command line ด้วยคำสั่ง curl -Ss https://www.workerman.net/webman/check | php

หากมีข้อความ提示ว่า Functions 函数名 has be disabled. Please check disable_functions in php.ini หมายความว่าฟังก์ชันที่ webman ใช้งานถูกปิดอยู่ ต้องไปเปิดใช้งานใน php.ini เพื่อให้ใช้งาน webman ได้อย่างปกติ
สำหรับการปลดการปิดสามารถเลือกใช้วิธีใดวิธีหนึ่งจากด้านล่างนี้ได้เลย

วิธีที่หนึ่ง

ติดตั้ง webman/console

composer require webman/console ^v1.2.35

รันคำสั่ง

php webman fix-disable-functions

วิธีที่สอง

รันสคริปต์ curl -Ss https://www.workerman.net/webman/fix-disable-functions | php เพื่อปลดการปิด

วิธีที่สาม

รัน php --ini เพื่อค้นหาที่ตั้งไฟล์ php.ini ที่ php cli ใช้งาน

เปิดไฟล์ php.ini และค้นหา disable_functions แล้วปลดการเรียกใช้งานฟังก์ชันต่อไปนี้

stream_socket_server
stream_socket_client
pcntl_signal_dispatch
pcntl_signal
pcntl_alarm
pcntl_fork
pcntl_wait
posix_getuid
posix_getpwuid
posix_kill
posix_setsid
posix_getpid
posix_getpwnam
posix_getgrnam
posix_getgid
posix_setgid
posix_initgroups
posix_setuid
posix_isatty
proc_open
proc_get_status
proc_close
shell_exec
exec
putenv
getenv