じぶんメモ

プログラミングのメモ、日常のメモとか。

CodeIgniterでindex.phpへのアクセスでエラーが発生。

CodeIgniterでindex.phpにアクセスしたら以下のようなエラーが発生した。

Your system folder path does not appear to be set correctly. Please open the following file and correct this index.php

index.phpをapplication、systemsフォルダと違う階層に設置すると発生する。
index.phpで上記フォルダのパスを指定している部分があるので、
index.phpからの相対パスでapplication、systemsフォルダの場所を指定する必要がある。

  // $system_path = '/system';
  $system_path = '../system';

  // $application_folder = '/application';
  $application_folder = '../application';