2

网站通过我的域访问时抛出 500 的服务器错误(服务器日志:错误代码 204),尽管它在我的开发服务器上完美运行。

其次,开发服务器没有与数据库通信。我不知道为什么,但它连接虽然它不查询。

我正在使用 php。它仍在预览中。

编辑:这是来自 app.yaml 文件的示例

- url: /contactus/.*
  script: contactus.php
- url: .*
  script: main.php

当我尝试转到“/”时,它完美地工作。但是当我尝试 /aboutus/ 时,它只会在 GAE 站点中引发 500 服务器错误。

示例代码

define("pageName", "About Us");
require_once("header.php");
?>
<!--HEADER-->
    <section>
    </section>
    <article>
    </article>
<!--FOOTER-->
<?php
require_once("footer.php");
?>

来自服务器日志的错误消息

 2013-11-11 03:04:00.313

This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.

W 2013-11-11 03:04:00.313

A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used 

main.php 也有相同的代码,但它可以工作。

4

0 回答 0