Warning: require(): open_basedir restriction in effect 错误解决方法

NMP 1.4或更高版本如果不想用防跨目录或者修改.user.ini的防跨目录的目录还需要将 /usr/local/nginx/conf/fastcgi.conf 里面的fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/"; 在该行行前添加 # 或删除改行,需要重启nginx。


出现此类问题一般为open_basedir的问题(open_basedir的值来设置限制访问的目录或删除来移除防跨目录的设置。)

查看全文

thinkphp6 think-queue 3.x 学习笔记

一、安装composer require topthink/think-queue二、配置配置文件位于 config/queue.php博主建议:推荐使用 Redis 模式。若尚未安装 Redis 请先安装 Redis,并且保证 PHP 中已启用 Redis 插件。return [     'default' => 'redis', // 将&nb
查看全文