1

尝试在 Ubuntu 上的 php app-engine 上运行 WordPress 时,我遇到了一些错误。

  1. 说明提到 using dev_appserver.py -R,但-R参数无效吗?

  2. 服务器启动良好(我能够成功运行 helloworld)但是在访问时,我收到以下错误:

    ERROR:root:php failure (255) with:
    X-Powered-By: PHP/5.4.15
    Content-type: text/html
    
    <br />
    <b>Warning</b>:  chdir(): No such file or directory (errno 2) in         <b>/home/ubuntu/google_appengine/google/appengine/tools/devappserver2/php/setup.php</b> on line <b>12</b><br />
    <br />
    <b>Warning</b>:  require(wordpress/index.php): failed to open stream: No such file or directory in     <b>/home/ubuntu/google_appengine/google/appengine/tools/devappserver2/php/setup.php</b> on line <b>45</b><br />
    <br />
    <b>Fatal error</b>:  require(): Failed opening required 'wordpress/index.php' (include_path='/home/ubuntu/wordpress:/home/ubuntu/google_appengine/php/sdk') in     <b>/home/ubuntu/google_appengine/google/appengine/tools/devappserver2/php/setup.php</b> on line <b>45</b><br />
    

在 google/appengine/tools/devappserver2/php/setup.php 第 11 行中进一步研究$actualPath = stream_resolve_include_path($relativePath);$relativePathiswordpress$actualPath收到的是一个空字符串,这似乎是导致此问题的原因。

4

1 回答 1

1

我不确定“-R”标志是否来自。我找不到它被记录在案。

您是否确定应用程序文件夹名为“wordpress”并且其中有一个 index.php 文件?

还要确保您的目录结构如下所示:

    .
    ├── app.yaml
    ├── cron.yaml
    ├── main.php
    ├── php.ini
    └── wordpress
        ├── index.php
        ├── license.txt
        ├── readme.html
        ├── wp-activate.php
        ├── wp-admin
        ├── wp-blog-header.php
        ├── wp-comments-post.php
        ├── wp-config.php
        ├── wp-config-sample.php
        ├── wp-content
        ├── wp-cron.php
        ├── wp-includes
        ├── wp-links-opml.php
        ├── wp-load.php
        ├── wp-login.php
        ├── wp-mail.php
        ├── wp-settings.php
        ├── wp-signup.php
        ├── wp-trackback.php
        └── xmlrpc.php

    4 directories, 21 files

我刚刚测试了安装说明,它运行良好。

于 2013-05-20T08:53:41.523 回答