gpt4 book ai didi

Dreamhost 上的 CakePHP 500 内部服务器错误

转载 作者:行者123 更新时间:2023-12-02 14:07:31 26 4
gpt4 key购买 nike

当我尝试在 DreamHost 上的服务器上托管 CakePHP 站点时,出现以下错误

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@reelstubs.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

链接到网址

http://reelstubs.com/

最佳答案

我在 MediaTemple (ve) 服务器上遇到了同样的问题。在我网站的根目录中标准、简单地安装 CakePHP 2.1.3。

对我来说,修复方法是将 RewriteBase 行添加到 .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>

所以 RewriteBase/ 行(包括末尾的斜杠)对我来说起了作用。

!重要提示:对 root/app/app/webroot 文件夹中的所有三个 .htaccess 文件执行此操作。

关于Dreamhost 上的 CakePHP 500 内部服务器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10516775/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com