使用thinkphp5安裝到寶塔的linux上,出現如下錯誤:php
Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/c
解決辦法:找到 php.ini 打開 open_basedir 修改成: /www/wwwroot/linux
open_basedir = "/www/wwwroot/"
而後就能夠正常訪問了。thinkphp