哪些Nginx配置会导致php错误不提示,下面web建站小编给大家简单介绍一下具体解决方法!
正确配置方法:
server {
# server settings
...
# server block location rules
...
# php-fpm status check
location ~ ^/(status|ping)$ {
access_log off;
# php-fpm settings
fastcgi_param PHP_VALUE "error_reporting=E_ALL";
include fastcgi_params;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
# php error logs
location ~ \.php$ {
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/php_error.log";
include fastcgi_params;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
# error pages
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
# static files
location ~* \.(jpg|jpeg|gif|png|css|js|ico)$ {
expires 7d;
access_log off;
}
# disable direct access to .ht files
location ~ /\.ht {
deny all;
}
}
PS:错误输出地址:/var/log/nginx/php_error.log
上面是“Nginx配置什么原因导致php错误不提示”的全面内容,想了解更多关于 php入门 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_3991.html
workflows工作流
一个孤独的身影在未来主义城市
文生图工作流:树枝上站着一只鸟
斗鸡场威武雄鸡ComfyUI工作流
汗血宝马ComfyUI工作流
森林里一只空灵的犀鸟ComfyUI工作流
树枝上一只色彩斑斓的小鸟
泰坦尼克号桌面壁纸上ComfyUI工作流
一辆老式灵车在黑暗中从雾中出现ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

纯css3绘制的小鸟
iframe开发admin后台
利用js+css3做一个小鱼游泳特效
css3结合svg做一个动态广告
纯css制作卡通头像(随鼠标转头)
日历设置每个月颜色都不一样
js导出excel插件(兼容mac电脑Numbers表格)












