thinkPHP5配置nginx环境无法打开(require(): open_basedir restriction in effect. File(/mnt/hgfs/root/tp5/thinkphp/start.php) is not within the allowed path(s)

正文开始

<p>修改fastcgi的配置文件 /usr/local/nginx/conf/fastcgi.conf   <br /></p><p></p><p></p><pre>fastcgi_param PHP_ADMIN_VALUE &quot;open_basedir=$document_root/../:/tmp/:/proc/&quot;;</pre> <br /><p></p><p>重启 service nginx restart <br /></p><br />

正文结束

PHP接口(interface)和抽象类(abstract) Lnmp1.4 一键安装包 安装php fileinfo扩展