thinkphp5 has a 500 error, as shown below:
##Related recommendations: "ThinkPHP Tutorial"
require(): open_basedir restriction in effect. File(/home/wwwroot/pic/thinkphp/start.php) is not within the allowed
/usr/local/nginx/conf/fastcgi.conffastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/../:/tmp/:/proc/";
The above is the detailed content of What to do if a 500 error occurs in thinkphp5. For more information, please follow other related articles on the PHP Chinese website!