fopen(): open_basedir restriction in effect

laravel+workerman执行:php artisan workerman start --d报错:

fopen(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/xxxxxxx/) in file /xxxxx/vendor/workerman/workerman/Worker.php on line 1239
fopen(/dev/null): failed to open stream: Operation not permitted in file /xxxxxx/vendor/workerman/workerman/Worker.php on line 1239
fopen(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/xxxxxx/) in file /xxxxxx/vendor/workerman/workerman/Worker.php on line 1239
fopen(/dev/null): failed to open stream: Operation not permitted in file /xxxxxx/vendor/workerman/workerman/Worker.php on line 1239
fopen(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/xxxxxx/ceshiytsjk:/tmp/:/proc/) in file /xxxxxx/vendor/workerman/workerman/Worker.php on line 1239
fopen(/dev/null): failed to open stream: Operation not permitted in file /xxxxxx/vendor/workerman/workerman/Worker.php on line 1239

在php.ini中找到open_basedir,将/dev/null添加进去

多个值时,windows中用“;”隔开,linux中用“:”隔开

open_basedir = "/xxxx/:/dev/null"

 

 

 

 

你可能感兴趣的:(php,基本,workerman)