[英]Internal Server Error while run my website
I have uploaded my website on cpanel. 我已经在cpanel上上传了我的网站。 When I open it I see
当我打开它时,我看到
Internal Server Error
内部服务器错误
The server encountered an internal error or misconfiguration and was unable to complete your request.
服务器遇到内部错误或配置错误,无法完成您的请求。
Please contact the server administrator at webmaster@testme.com to inform them of the time this error occurred, and the actions you performed just before this error.
请通过webmaster@testme.com与服务器管理员联系,以告知他们该错误发生的时间以及在此错误发生之前您执行的操作。
More information about this error may be available in the server error log.
服务器错误日志中可能会提供有关此错误的更多信息。
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
此外,尝试使用ErrorDocument处理请求时遇到404 Not Found错误。
What can I do for this? 我该怎么办?
You need to create a 404 page first of all -> that is the final part of your error. 您首先需要创建404页面->这是错误的最后一部分。
The misconfiguration '500 inernal server error' is nearly always caused by an incorrect .htaccess file - check that you have the correct RewriteBase
defined. 错误配置“ 500内部服务器错误”几乎总是由错误的.htaccess文件引起的-请检查您是否定义了正确的
RewriteBase
。
Try to see the server log error. 尝试查看服务器日志错误。 The details where the error occurred are stored and there are a wide variety of reasons for internal server error.
存储发生错误的详细信息,并且内部服务器错误的原因多种多样。 Apache2 server logs can be seen at:
可以在以下位置查看Apache2服务器日志:
/var/log/apache2/error.log
You can also see the access.log at /var/log/apache2/access.log
您还可以在
/var/log/apache2/access.log
查看access.log。
Besides, you can see the cPanel error logs 此外,您可以看到cPanel错误日志
I also faced a similar internal server error on my drupal 6 website and error log showed me that I called an undefined json function(not installed on server then). 我在drupal 6网站上也遇到了类似的内部服务器错误,错误日志显示我调用了一个未定义的json函数(当时未安装在服务器上)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.