【问题标题】:Where to put wp-config.php when setting up Wordpress for Google App Engine为 Google App Engine 设置 Wordpress 时在哪里放置 wp-config.php
【发布时间】:2016-09-21 21:57:47
【问题描述】:

我正在尝试按照https://googlecloudplatform.github.io/appengine-php-wordpress-starter-project/ 上的说明进行操作。我对以下步骤有一些疑问:

说明似乎暗示wordpress 目录中应该有一个wp-config.php。但是,从 Github 克隆出来,在上面的主目录中有一个wp-config.php

wordpress 目录是空的。

我正在考虑两种选择:
1) 编辑 wp-config.php 并将其保留在原处,或者
2) 编辑wp-config.php 并将其移至wordpress 子目录。

这些方法中的任何一种都是正确的吗?另外,启动项目中是否有足够的文件来启动 Wordpress,或者我是否必须自己下载并将提取的内容放在 wordpress 目录中?

编辑
再次感谢 GAEfan 的回答。我再次尝试克隆 Github 存储库,但 wordpress 目录仍然是空的:

kurt@kurt-ThinkPad:~/Website$ git clone https://github.com/GoogleCloudPlatform/appengine-php-wordpress-starter-project.git
Cloning into 'appengine-php-wordpress-starter-project'...
remote: Counting objects: 575, done.
remote: Total 575 (delta 0), reused 0 (delta 0), pack-reused 575
Receiving objects: 100% (575/575), 79.22 MiB | 11.21 MiB/s, done.
Resolving deltas: 100% (317/317), done.
Checking connectivity... done.
kurt@kurt-ThinkPad:~/Website$ cd app*
kurt@kurt-ThinkPad:~/Website/appengine-php-wordpress-starter-project$ cd wordpress
kurt@kurt-ThinkPad:~/Website/appengine-php-wordpress-starter-project/wordpress$ ls
kurt@kurt-ThinkPad:~/Website/appengine-php-wordpress-starter-project/wordpress$

但是,我注意到在 Github 上,wordpress 目录本身就是指向另一个 Github 项目的链接:

我假设我也必须克隆它们各自目录中的所有“子模块”?

【问题讨论】:

    标签: wordpress google-app-engine


    【解决方案1】:

    wordpress 目录应该充满了文件!您的 app.yaml 设置为在那里查看。所以,wp-config.php 应该在其中,以及许多其他文件。

    尝试重新下载。我的下载是:appengine-php-wordpress-starter-project_build_linux_mac 2

    【讨论】:

      猜你喜欢
      • 2013-10-28
      • 1970-01-01
      • 2017-01-15
      • 1970-01-01
      • 2020-12-22
      • 1970-01-01
      • 2019-09-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多