2017年10月16日月曜日

Drupal8のインストール後、「settings.phpがー!」と怒られる

※Widnows10ローカル上、Acquia Dev Desktop使用。Drupal8.4.0。

Drupal8のインストール後、ごにょごにょしていると発生するエラー2件。

1つ目。構成ディレクトリのエラー。
Your sites/[*MYSITENAME*].dd/settings.php file must define the $config_directories variable as an array containing the names of directories in which configuration files can be found. It must contain a sync key.
コンフィグレーションを配置する同期ディレクトリが必要?みたいなようで。で、解決方法。
  1. 任意のフォルダを作成。例えばドキュメントの下に'drupal_sync'など。
  2. Drupal8のインストールディレクトリ/sites/default/settings.phpの読み取り専用を解除
  3. 2のファイルを開き、以下を追加して保存。
    $config_directories = array(
      CONFIG_SYNC_DIRECTORY =>
      '[1で新規作成したフォルダへの絶対パス]',
    );
    ※1でドキュメントの下に'drupal_sync'を作成した場合、'C:\Users\[YOUR-WINDOWS-ACCOUNT]\Documents\drupal_sync'になる
  4. Drupalの管理画面から、メニューバー'レポート'→'サイトの状態'を開き、'システム全体の情報'テーブルの右にある'cronを実行'ボタンを押下
4については、他の方法もあるでしょうね。

ってか、何でインストール解説にこういったことが書かれてないんでしょうねぇ。。。日本語の情報だけでは無理だな、Drupalは。

※参考 
[Solved] Drupal 8 Acquia error - Your sites/*/.dd/settings.php file must define the $config_directories ... contain a sync key

0 件のコメント:

コメントを投稿