Start the workman and report an error
Workerman[start.php] start in DEBUG mode
stream_socket_server() has been disabled for security reasons in file /home/wwwroot/laykefu/vendor/workerman/workerman/Worker.php on line 2214
PHP Fatal error: Uncaught Exception in /home/wwwroot/laykefu/vendor/workerman/workerman/Worker.php:2216
Stack trace:
#0 /home/wwwroot/laykefu/vendor/workerman/workerman/Worker.php(646): Workerman\Worker->listen()
#1 /home/wwwroot/laykefu/vendor/workerman/workerman/Worker.php(504): Workerman\Worker::initWorkers()
#2 /home/wwwroot/laykefu/vendor/workerman/Config/start.php(37): Workerman\Worker::runAll()
#3 {main}
thrown in /home/wwwroot/laykefu/vendor/workerman/workerman/Worker.php on line 2216
Fatal error: Uncaught Exception in /home/wwwroot/laykefu/vendor/workerman/workerman/Worker.php:2216
Stack trace:
#0 /home/wwwroot/laykefu/vendor/workerman/workerman/Worker.php(646): Workerman\Worker->listen()
#1 /home/wwwroot/laykefu/vendor/workerman/workerman/Worker.php(504): Workerman\Worker::initWorkers()
#2 /home/wwwroot/laykefu/vendor/workerman/Config/start.php(37): Workerman\Worker::runAll()
#3 {main}
thrown in /home/wwwroot/laykefu/vendor/workerman/workerman/Worker.php on line 2216
The reason is: PHP the stream_socket_erver()
function is disabled
Solution
Find the php.ini
file and find disable_functions
whether stream_socket_server()
this function is disabled in this item
find / -name php.ini # Find the location of php.ini
vim /usr/local/php/etc/php.ini # open edit php.ini
Press esc key, enter :/stream_socket_server
, press n
start search
Check the function is not in disable_functions
this one there, this one is meant Prohibited Method
If there is this function, delete it, press the esc key, enter to wq
save and exit
Restart php-fpm
service php-fpm restart
Read More:
- [Solved] laravel proc_get_status() has been disabled for security reasons
- How to solve Magento 500 internal server errors
- [PHP] Solve Call-time pass-by-reference has been removed
- Error: call-time pass-by-reference has been removed
- [Solved] has been blocked by CORS policy: Response to preflight request doesn‘t pass access control check: No
- [Solved] PHPMailer Error: SMTP ERROR: Failed to connect to server: (0)
- How to Solve PHP Fatal error: Namespace declaration statement has to be the very first statement
- /www/server/php/56/sbin/php-fpm:error while loading shared libraries:libssl.so.1.0. 0:cannot open shared object file:No such file or directory
- PHP file download, download failed, nginx open() nginx / fastcgi_ temp/2/10/0000000102“ failed (13: Permission denied)
- [Solved] Error while sending STMT_PREPARE packet. PID=29294
- nginx.conf php-fpm.conf and php.ini Error among the three_ Differences and relations between log instructions
- [Solved] PHP Fatal error: Uncaught Elasticsearch\Common\Exceptions\NoNodesAvailableException: No alive nodes
- [Solved] tp6.0 open_basedir Error: Warning: require(): open_basedir restriction in effect.
- laravel The Process class relies on proc_open, which is not available on your PHP installation.
- [Solved] yii error: Setting unknown property: yii\console\Request: :cookieValidationKey
- Undefined index: name error in composer [How to Solve]
- [Solved] file_get_contents(): SSL operation failed with code 1
- [Solved] WordPress Upgrade PHP 5.6 to 7.x Fatal error: Uncaught Error: Call to undefined function mysql_connect()
- [Solved] ‘node’ command failed to start the project, with an error: “unknown database’ mydb ‘”
- PHP: How to parse MHT file into HTML