Warning: require(): open_basedir restriction in effect

php environment lnmp a key installation, php7.2. Item code displayed after upload

Warning: require(): open_basedir restriction in effect. File  is not within the allowed path(s): 等信息

Baidu Solutions

Modify /usr/local/nginx/conf/fastcgi.conf

The fastcgi_param PHP_ADMIN_VALUE "open_basedir = $ document_root /: / tmp /: / proc /"; this line comments, you can restart nginx.

If we do not take effect, it will fastcgi_param PHP_ADMIN_VALUE "open_basedir = NULL"; set to NULL, restart nginx

Published 21 original articles · won praise 3 · views 20000 +

Guess you like

Origin blog.csdn.net/zchare/article/details/81903701