비활성화 함수 확인
이 스크립트를 사용하여 비활성화된 함수가 있는지 확인합니다. 명령줄에서 curl -Ss https://www.workerman.net/webman/check | php
를 실행합니다.
만약 다음과 같은 경고가 표시되면 Functions 함수명 has be disabled. Please check disable_functions in php.ini
웹맨이 의존하는 함수가 비활성화되어 있음을 나타내며, 정상적으로 웹맨을 사용하기 위해서는 php.ini에서 비활성화를 해제해야 합니다. 비활성화 해제를 위한 방법 중 하나를 선택하여 진행하면 됩니다.
방법 1
webman/console
설치
composer require webman/console ^v1.2.35
명령 실행
php webman fix-disable-functions
방법 2
스크립트 curl -Ss https://www.workerman.net/webman/fix-disable-functions | php
를 실행하여 비활성화를 해제합니다.
방법 3
php --ini
를 실행하여 php cli에서 사용하는 php.ini 파일 위치를 찾습니다.
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