共有サーバーに Web サイトをアップロードしたいと考えています。
構造
- public_html
- Yii(フォルダ)
- index.php (ルートフォルダー内)
「Server ERROR」というメッセージが表示されました。どこに問題があるのか、コードを変更して動作させるには何を変更すればよいのか、誰か教えてください。インデックス コードは次のとおりです。
<?php
// yii directory paths<br/>
$yii=dirname(__FILE__).'/yii/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
// remove the following lines when in production mode<br/>
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message<br/>
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($yii);
Yii::createWebApplication($config)->run();
?>