天天看點

nginx配置TP5 2.scandir() has been disabled

1.提示:Call to undefined function url()

這個問題,首先将TP5架構中的

application/config.php
           

中的

app_debug

置為

true

同時把

exception_tmpl

置為

THINK_PATH . 'tpl' . DS . 'think_exception.tpl'

這樣應該就可以顯示出相對應的錯誤了。

2.scandir() has been disabled

進入到php的配置目錄,編輯php.ini

搜尋scandir

nginx配置TP5 2.scandir() has been disabled

然後将這段全部注釋掉,儲存退出

3. 重新開機nginx和php-fpm。再重新整理檢視,OK啦!