首页 \ 问答 \ 500内部服务器错误CakePHP(500 Internal server error CakePHP)

500内部服务器错误CakePHP(500 Internal server error CakePHP)

我上传了一个cakePHP项目到Godaddy服务器。

我也看过这个链接。 但是没有解决错误: -

CakePHP 3中发生500内部服务器错误?

如何解决cakephp 500内部服务器错误?

CakePHP 500内部服务器错误

CakePHP显示500内部服务器错误

我的.htaccess代码在/root/.htaccess中

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

在/root/app/.htaccess中

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

在/root/app/webroot/.htaccess中

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

经过大量努力后,这个错误仍然存​​在。

屏幕截图

请帮忙?


I uploaded a cakePHP project to the Godaddy server.

I have also seen this link. But not solve the error:-

500 internal server error occured in CakePHP 3?

How to solve cakephp 500 Internal Server Error?

CakePHP 500 Internal Server Error

CakePHP shows 500 Internal Server Error

My .htaccess code in /root/.htaccess

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

In /root/app/.htaccess

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

In /root/app/webroot/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

This error is still coming after a lot of effort.

Screen Shot

Please Help?


原文:https://stackoverflow.com/questions/47667068
更新时间:2023-07-07 13:07

相关问答

更多
  • 不,没有更好的解决方案。 事实上,即使使用阻塞I / O,您也需要编写一个指示大小的标头,因为Protobufs不是自定界限的(默认情况下,protobuf解析器将始终读取直到EOF!)。 No, there is no better solution. In fact, even when using blocking I/O, you need to write a header indicating the size, because Protobufs are not self-delimiting ...
  • Protobuf v2.6.0为此引入了oneof关键字 。 例: message BigMessage { oneof message { SdkHGetRet hgetret = 1; SdkHPut hput = 2; ... } } oneof确保只设置其中一个字段,并允许你switch()哪一个。 请注意,即使在Protobuf 2.6.0之前,最好的解决方案也是一系列可选字段,可能还有一个枚举来指定设置哪一个: message BigMessage { en ...
  • .Net可以看作是两个独立的部分。 一个是ECMA标准化CLI ,另一个是CLR 。 CLR是CLI的微软实现。 CLI可以在许多设备上执行,例如Windows(x86,x64,ia64和现在的ARM),XBox,Zune,手机甚至嵌入式设备(小型芯片) 。 Mono / Moonlight是CLI的实现,甚至是由微软通过Novell部分资助的CLR的一部分。 Microsoft支持这项工作并发布源代码以提供帮助。 通过Mono,您可以访问大多数操作系统和CPU类型。 还有编译器可以将.Net代码直接编译为 ...
  • 谢谢somdoron, 你的帖子使用: zmsg_addmem(msg, buf, 226); 我正在使用时: zmsg_addstr(msg, reinterpret_cast (&stuffed[0])); 这可能会将输入解释为C字符串。 这解决了这个问题,比很多! Thank you somdoron, your post uses: zmsg_addmem(msg, buf, 226); while i was using: zmsg_addstr(msg, reinterpre ...
  • 我通过将发送的字节数增加+ 1来解决这个问题。 public void DataToSend(IMessage message) { CodedOutputStream output = new CodedOutputStream(m_ostream.BaseStream, true); output.WriteMessage(message); output.Flush(); (m_ostream.BaseStream as MemoryStream).SetLength(0); // r ...
  • 对不起,您误解了扩展程序。 我说“对不起”,因为这可能是我的错 - 我设计了“扩展”功能,不幸的是,通过使用“扩展”这个词我让很多人感到困惑。 你看,扩展与继承无关。 在您的示例中,您没有声明Command_Login是SessionCommand任何类型的子类。 如果我们稍微改变声明,这将更容易理解: message Command_Login { optional string user_name = 1; optional string password = 2; } extend ...
  • 由于@frymode pointet在他的评论中,与NewGeneratedMessageReflection的链接意味着编译器生成了使用Protobuf版本3的代码(因为我在我的.proto文件中使用了该版本)。 但是,从ubuntu软件包安装的库文件将版本2拉到我的系统上,这就是无法找到方法的原因。 解决方案是再次删除所有内容并构建protobuf,包括来自源的protoc。 As @frymode pointet out in his comment, linkage to NewGeneratedM ...
  • 一般来说,由于未知字段的可能性,任何protobuf消息可以是任意长度的。 如果你收到一条消息,你不能对长度做任何假设。 如果您发送的是自己创建的消息,那么您可以假设它只包含您了解的字段 - 但在此情况下,您还可以轻松计算确切的消息大小。 因此,询问最大尺寸是多少没有用。 据说,你可以编写使用Descriptor接口遍历FieldDescriptor的消息类型( MyMessageType::descriptor() )的代码。 请参阅: https : //developers.google.com/pr ...
  • 是的,有一个黑客。 但是你需要输入一些工作。 要在ROS中使用发布者/订阅者方法,您需要为.msg文件中的所有主题定义消息。 从该文件中,将自动生成C ++类。 但是你不想触摸那个自动生成的文件! 您可以做的是定义您的类并将其与自动生成的类相关联。 在这里查看如何执行此操作的示例。 然后,您可以使用isValid等所需方法扩展自定义类。 另一种(也许更简单)的方法是声明一个帮助器类,它将为消息中的每个类型执行所需的工作。 或者你可以继续使用protobuf。 如果不是在ROS中,它也至少在Gazebo中使用 ...
  • 这里的问题是协议缓冲区不是自定界限的; 要解析一条消息,您必须事先知道要读取多少字节。 由于有线格式的工作方式,您可以连接两个(或更多)序列化协议缓冲区,但仍然有一个有效的消息; 对于任何给定的奇异域,后面的值优先于先前的值。 所以发生的事情是ParseFromIstream正在读取所有三个序列化消息,就像它们是一条消息一样,并且最后一条消息实际上优先于前两条消息。 要解决此问题,您必须为每条消息包含某种消息长度前缀。 通常,这是通过为每个消息添加一个存储其长度的varint来完成的。 这个来自Kenton ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)