在liunx里getewayWorker启动报错

小柠檬

PHP Warning: require_once(): open_basedir restriction in effect. File(/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php) is not within the allowed path(s): (/www/wwwroot/dy.cocolien.cn/) in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29

Warning: require_once(): open_basedir restriction in effect. File(/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php) is not within the allowed path(s): (/www/wwwroot/dy.cocolien.cn/) in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29
PHP Warning: require_once(/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29

Warning: require_once(/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29
PHP Fatal error: require_once(): Failed opening required '/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php' (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29

Fatal error: require_once(): Failed opening required '/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php' (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29
[dc2-user@10-255-0-16 GatewayWorker]$ php start.php
PHP Warning: require_once(): open_basedir restriction in effect. File(/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php) is not within the allowed path(s): (/www/wwwroot/dy.cocolien.cn/) in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29

Warning: require_once(): open_basedir restriction in effect. File(/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php) is not within the allowed path(s): (/www/wwwroot/dy.cocolien.cn/) in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29
PHP Warning: require_once(/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29

Warning: require_once(/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29
PHP Fatal error: require_once(): Failed opening required '/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php' (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29

Fatal error: require_once(): Failed opening required '/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php' (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29
[dc2-user@10-255-0-16 GatewayWorker]$ php start.php
PHP Warning: require_once(): open_basedir restriction in effect. File(/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php) is not within the allowed path(s): (/www/wwwroot/dy.cocolien.cn/) in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29

Warning: require_once(): open_basedir restriction in effect. File(/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php) is not within the allowed path(s): (/www/wwwroot/dy.cocolien.cn/) in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29
PHP Warning: require_once(/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29

Warning: require_once(/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29
PHP Fatal error: require_once(): Failed opening required '/www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/vendor/autoload.php' (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/TP5.1/tp5/vendor/GatewayWorker/start.php on line 29

2687 2 0
2个回答

phpcreeper

这是 open_basedir 目录域权限设置不当造成,至于哪些是白名单域只有你自己知道,配置进去就可以了,或者最简单的方法就是干脆注释掉该指令:

vim /path/to/your/php.ini

;open_basedir =  
  • 暂无评论
小柠檬

解决了,谢谢!!

  • 暂无评论
年代过于久远,无法发表回答
×
🔝