Two methods:
1. Modify the fastcgi configuration file/usr/local/nginx/conf/fastcgi.conf
Fastcgi_param php_admin_value "open_basedir= $document _root/. /:/tmp/:/proc/";
2. This time you need to add the following below PHP.ini
Note: xxx.abczn.com is replaced with your corresponding domain name and directory
[HOST=xxx.abczn.com ]
open_basedir=/home/wwwroot/ xxx.abczn.com :/tmp/:/proc/
[PATH=/home/wwwroot/ xxx.abczn.com ]
open_basedir=/home/wwwroot/ xxx.abczn.com:/tmp/:/proc/
thinkphp 5.0 LNMP Environment Warning:require (): Open_basedir restriction in effect. File Error Handling
THINKPHP5 configuration Nginx Environment cannot be opened (require (): Open_basedir restriction in effect. File (/mnt/hgfs/root/tp5/thinkphp/start.php) is not within the allowed path (s)
PHP7 There may be a need to modify the php.ini Scandir
thinkphp 5.0 LNMP Environment can not access, error (Public directory)