我在Ubuntu上尝试在php app-engine上运行WordPress时遇到了一些错误。
使用dev_appserver.py -R
提及instructions,但-R
是无效的参数?
服务器启动良好(我能够成功运行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);
中进一步了解此信息,$relativePath
为wordpress
且$actualPath
已收到是一个空字符串,似乎导致此问题。
答案 0 :(得分: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
我刚测试了安装说明,但效果很好。