首页 >社区问答列表 >php - 该网页无法正常运作 目前无法处理此请求。 HTTP ERROR 500?

php - 该网页无法正常运作 目前无法处理此请求。 HTTP ERROR 500?

软件及环境

系统: 阿里云ECS Ubuntu 16.04.2 LTS
软件: docker、lnmp镜像

问题描述

当PHP出现语法错误时,页面就出现: 目前无法处理此请求。 HTTP ERROR 500

问题截图

  • 502 Bad Gateway
  • 502 Bad Gateway    2019-09-23 15:23:333楼

    500错误大概是php代码有问题了

    error_reporting(“E_ALL”)

    ini_set(“display_errors”, “on”)

    添加这两条代码

    让错误暴露出来

    再根据错误信息

    逐一排查

    +0添加回复

  • 回复
  • 学习ing
  • 学习ing    2017-07-01 09:14:202楼

    由于php.ini配置文件中错误显示关闭导致.

    将下值由Off 变更为 On

    display_errors = On
    
    display_startup_errors = On

    +0添加回复

  • 回复