安裝好lnmp的環境後,上傳tp5項目php
一、先是遇到一個 : scandir() has been disabled for security 的問題nginx
解決方法:打開php.ini配置文件,找到: disable_functions 把裏面的scandir刪除便可。lnmp
二、而後再次刷新雖然跳轉了,可是出現了404it
排查了好久,是fastcgi_pass的問題,是由於nginx沒有支持pathinfo,lnmp裏自帶了一個配置文件讓php支持pathinfo的,他默認是用了 enable-php.conf 改爲 enable-php-pathinfo.conf 這個文件就好了io
重啓,ok~
ast