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


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