require(): open_basedir restriction in effect. File(/www/wwwroot/xcx/zerg/thinkphp/start.php) is not

解決方法:php

 在以下文件增長一項(如圖所示)html

 

 在以下文件增長一項(如圖所示):spa

#php文件採用fastcgi解析並設置參數
    location ~ \.php {
        try_files $uri = 404;
        
        fastcgi_index  /index.php;
        fastcgi_pass ********;
        
        #加載fastcgi.conf文件中的參數
        include fastcgi.conf;
        
        #設置有權限目錄,fastcgi.conf中默認設置就是站點目錄$document_root,若是要改變就須要從新賦值
        #phalcon舉例
        #fastcgi_param PHP_ADMIN_VALUE "open_basedir=/www/wwwroot/xcx/zerg/:/data/tmp/php/upload/:/proc/";
    }

訪問項目:.net

 

繼續配置3d

location / {
          if (!-e $request_filename) {
                rewrite ^(.*)$ /index.php?s=$1 last;
                break;
          }
}

 

 

圓滿解決!!!!!!!!!!!!!!code

參考文件:htm

http://blog.csdn.net/leiflyy/article/details/68063423blog

https://www.iamle.com/archives/1609.htmlget

http://blog.csdn.net/slqgenius/article/details/52949191(主要解決參看的文件)it

 

相關文章
相關標籤/搜索