Home > Article > PHP Framework > What to do if a 500 error occurs in thinkphp5
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 allowedSolution: 1. I am lnmp1.4 php5.6, open_basedir in php.ini is commented out. 2. It was found that it was a fastcgi problem. 3. Modify the fastcgi configuration file.
/usr/local/nginx/conf/fastcgi.conffastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";is changed to
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/../:/tmp/:/proc/";4. Restart service nginx restart.
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!