修改 .user.ini 无效
Ubuntu Server 16.04 LNMP1.4(php7.0Nginx1.12.0)fastcgi.conf : fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";是否只是限制 网站根目录?
修改了 .user.ini : open_basedir=/opt/www/h2o.dev/:/tmp/:/proc/lnmp restart 依然报错!
Warning: require(): open_basedir restriction in effect. File(/opt/www/h2o.dev/bootstrap/autoload.php) is not within the allowed path(s): (/opt/www/h2o.dev/public/:/tmp/:/proc/) in /opt/www/h2o.dev/public/index.php on line 22
Warning: require(/opt/www/h2o.dev/bootstrap/autoload.php): failed to open stream: Operation not permitted in /opt/www/h2o.dev/public/index.php on line 22
Fatal error: require(): Failed opening required '/opt/www/h2o.dev/public/../bootstrap/autoload.php' (include_path='.:/usr/local/php/lib/php') in /opt/www/h2o.dev/public/index.php on line 22 https://lnmp.org/faq/lnmp-vhost-add-howto.html#user.ini
fastcgi.conf中的设置是用来防.user.ini 的bug的
你的虚拟主机配置root应该是设置到/opt/www/h2o.dev/public/的,你这种情况只能将fastcgi.conf中的配置删掉才行 licess 发表于 2017-5-11 19:44
https://lnmp.org/faq/lnmp-vhost-add-howto.html#user.ini
fastcgi.conf中的设置是用来防.user.ini 的bug ...
我删了又影响别的网站,有的直接 no input file specified,有的偶尔跳 no input file specified
页:
[1]