简体   繁体   English

500 - 使用 lighttpd 的内部服务器错误

[英]500 - Internal Server Error with lighttpd

I have a VPS with CentOS 5.8 (Final) and when I use lighttpd as my webserver instead of apache I get this error: "500 - Internal Server Error" (I'm trying to install WordPress and I get this error when I try to access my site; the error doesn't appear at all when I try to access other .html pages).我有一个带有 CentOS 5.8 (Final) 的 VPS,当我使用 lighttpd 作为我的网络服务器而不是 apache 时,我收到此错误:“500 - Internal Server Error”(我正在尝试安装 WordPress,当我尝试安装时出现此错误访问我的网站;当我尝试访问其他 .html 页面时,该错误根本不会出现)。 If I switch back to apache then the error disappears and everything is fine.如果我切换回 apache,那么错误就会消失,一切都很好。 Why does this happen?为什么会这样? I prefer use lighttpd because it uses less memory.我更喜欢使用 lighttpd,因为它使用的内存更少。

I also created a file names "phpinfo.php" and uploaded it to my server.我还创建了一个文件名“phpinfo.php”并将其上传到我的服务器。 When I access it, I get the same "500 - Internal Server Error", so from what I know, this would mean that my lighttpd isn't working properly, right?当我访问它时,我得到相同的“500 - 内部服务器错误”,所以据我所知,这意味着我的 lighttpd 工作不正常,对吧? How can I solved this problem?我该如何解决这个问题?

You did not properly configure lighttpd to run your PHP, or your PHP is failing.你没有正确配置 lighttpd 来运行你的 PHP,或者你的 PHP 失败了。 You might not have installed php-cgi.你可能没有安装 php-cgi。

In any case, your question is poorly written.无论如何,你的问题写得不好。 See How to get help请参阅如何获得帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM