lnmp的一些報錯

這個主要是用來記錄自己在使用過程中遇到的一些小問題的,以後有問題慢慢加


php出現It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Asia/Chongqing’ for ‘CST/8.0/no DST’ instead,問題

原因:PHP未設置時區

解決:php.ini中增加:date.timezone = "Asia/Shanghai"


nginx報錯:has been denied (see security.limit_extensions)" while reading response header from upstream,

修改php-fpm:在security.limit_extensions=.php .php3 .php4 .php5 .gif .jpg .bmp .swf .png .js .css .jpeg .png .htm .html


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章