Nginx部署ThinkPHP时报错500问题

nginx配置文件fastcgi.conf
找到fastcgi_param PHP_ADMIN_VALUE这个参数,在这个参数的字符串中加入路径

fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/:/mnt/hgfs/phpworkspace/:站点部署路径";

Tags: thinkphp

添加新评论