Q&A
サーバーにcakephpを配置して学習しようとしていますが404エラーが発生します。
1、まずcakephp2.6.1をダウンロード。
2、cakephpにリネーム
3、WinSCPでサーバーのドキュメントルートに配置
サーバーのドキュメントルートは /var/www/html です。
/var/www/html/cakephp
4、ipアドレス/cakephp にアクセスすると真っ白な画面です。
5、又、TestControllerとViewにTest/index.ctpを用意
6、ipアドレス/cakephp/login にアクセスすると404エラー
下記、記事を見つけ試しましたが解決しませんでした。
・cakephp/app/Config/core.phpのdebug levelを0以外、1か2にする
最後に /var/log/httpd/error_log は下記の通りです。
ipアドレス/cakephpにアクセス時のエラーログです。
PHP Warning: include(/var/www/html/cakephp/lib/Cake/bootstrap.php): failed to open stream: No such file or directory in /var/www/html/cakephp/app/webroot/index.php on line 105
PHP Warning: include(): Failed opening '/var/www/html/cakephp/lib/Cake/bootstrap.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/cakephp/app/webroot/index.php on line 105
PHP 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 /var/www/html/cakephp/app/webroot/index.php on line 110
お手数お掛け致しますがご教授ください。
回答1件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。