[英]localhost http 500 internal server error
Sometimes, the localhost that i am using gave me that "http 500 error" whenever i try to access it.有时,每当我尝试访问它时,我使用的本地主机都会给我“http 500 错误”。 But, restarting the computer solved that problem and I could access my files, until today.
但是,重新启动计算机解决了这个问题,我可以访问我的文件,直到今天。 Today, even though i have changed nothing with my codes(same as yesterday), I cannot access my localhost and phpmyadmin even if i restart the pc.
今天,即使我的代码没有改变(与昨天相同),即使我重新启动电脑,我也无法访问我的本地主机和 phpmyadmin。 How can i solve it?
我该如何解决? what went wrong?
什么地方出了错? I dont think that the problem is about my code structure because if it was I could not access localhost yesterday(I changed nothing)
我不认为问题出在我的代码结构上,因为如果是这样的话,我昨天无法访问 localhost(我什么都没做)
Check the error log, it should have a more detailed description of the error.检查错误日志,它应该有更详细的错误描述。 If you're using Apache look for a file named
error.log
probably in a folder called log
如果您使用 Apache,请在名为
log
的文件夹中查找名为error.log
的文件
Actually I am also Have the same issue with the localhost so I eneble the rewrite mode of my wamp server and solve this issue.实际上,我对 localhost 也有同样的问题,所以我启用了 wamp 服务器的重写模式并解决了这个问题。
For Localhost :对于本地主机:
Apache -> Apache Modules -> rewrite module Apache -> Apache 模块 -> 重写模块
Enable it and restart the services.启用它并重新启动服务。
如果存在问题,还检查.htaccess文件:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.