前提・実現したいこと
XAMPPでローカル環境を作り、サーバから落としてきたCAKEPHPで制作されたサイトデータを確認したい。
発生している問題・エラーメッセージ
・CAKEPHPフレーム関係のデータがすべて反映されず崩れている。
※下層のhtmlファイルをローカルで指定して確認すると画像などは表示されるが、CAKEPHP関係のデータが呼び込まれず崩れている。
Warning: include(D:/root/system/cakephp/lib\Cake\bootstrap.php): failed to open stream: No such file or directory in C:\xampp\htdocs\●●●●\root\AAAAprog\index.php on line 117 Warning: include(): Failed opening 'D:/root/system/cakephp/lib\Cake\bootstrap.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\●●●●\root\AAAAprog\index.php on line 117 Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your \cake core directory and your \vendors root directory. in C:\xampp\htdocs\●●●●\root\AAAAprog\index.php on line 122
該当のソースコード
C:\xampp\htdocs\●●●●\root\AAAAprog\index.php
php
1 if (!include (CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) { 2 $failed = true; 3 } 4} 5if (!empty($failed)) { 6 trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR); 7}
試したこと
<現在の設定状況>
1.XAMPP の httpd-vhosts.conf にバーチャルホストとSSIの設定を記述
参考 http://creator.aainc.co.jp/archives/6388
2.ローカルで確認したいサイトデータに.htaccessを作成し以下を記述。
Options +Includes
AddType text/html shtml
AddHandler server-parsed shtml
<試してあきらめた事>
APP/webroot/index.php のデータ呼び出しのパスの変更
→変更しても変化しなかったため戻した。
回答1件
あなたの回答
tips
プレビュー