Disabled Functions Check
Use this script to check if there are any disabled functions. Run the following command in the command line: curl -Ss https://www.workerman.net/webman/check | php
If you see the message Functions 函数名 has be disabled. Please check disable_functions in php.ini
, it indicates that the functions required by webman are disabled and need to be enabled in php.ini
for webman to function properly. You can choose any of the following methods to enable them.
Method One
Install webman/console
composer require webman/console ^v1.2.35
Execute the command
php webman fix-disable-functions
Method Two
Run the script curl -Ss https://www.workerman.net/webman/fix-disable-functions | php
to enable the functions.
Method Three
Run php --ini
to find the location of the php.ini
file used by PHP CLI.
Open php.ini
, find disable_functions
, and enable the following function calls
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