如何解决Apache 500内部服务器错误? (重启,状态,尾巴…然后呢?)

这是迄今为止我所做的

[username@VMname /]$ sudo /etc/init.d/httpd restart [username@VMname /]$ sudo /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] [username@VMname /]$ /etc/init.d/httpd status httpd (pid 23043) is running... 

然后尝试运行…

 tail -f /var/log/httpd/error.log 

没有find返回的文件,所以我看,这就是我所看到的:

 [username@VMname /]$ cd /var/log/httpd access_log access_log.1 error_log error_log.1 ssl_access_log ssl_error_log ssl_error_log.1 ssl_request_log 

任何帮助深表感谢。 提前致谢!!

第一:

 tail -f /var/log/httpd/error_log 

不是error.log

检查你的Apacheconfiguration文件的一行

 LogLevel 

我会build议

 LogLevel error 

直到你找出错误。 警告/debugging可能太冗长了