Home  >  Article  >  Backend Development  >  HTTP 错误 500.0

HTTP 错误 500.0

WBOY
WBOYOriginal
2016-06-23 13:59:241229browse

这是什么问题,刚买的空间。
服务器是windows


回复讨论(解决方案)

简单运行一个页面可否?

在运行 php 程序时服务器报 500 错
这是因为 php 的错误显示功能没有打开,php 检查出的错误信息无路可去
不过你可能无法打开这个功能,那只有在本地调试好后再上传了
当然,书写健壮的程序是非常必要的
如果程序本身容错性好,自然就不会出问题了

简单的页面 可以运行。

开启错误显示,看看详细的错误信息是什么。

你查看你的空间的error log是啥,你用一个最简单的代码,如:测试,95%是代码问题

环境上执行一个最简单的php  能跑一般不是环境问题  95%可能是代码问题
具体查看php_error.log

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn