首页 > 代码库 > lnmp的一些报错

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


本文出自 “我们应该互相知悉” 博客,请务必保留此出处http://lshunchang.blog.51cto.com/9242952/1600364

lnmp的一些报错