php - setting up Yii1.13 on shared server error -
want upload web site shared server.
structure
- public_html
- yii(folder)
- index.php (inside root folder)
i'm getting message "server error".please can tell me problem or should change in code make work.here index code:
<?php // yii directory paths<br/> $yii=dirname(__file__).'/yii/yii.php'; $config=dirname(__file__).'/protected/config/main.php'; // remove following lines when in production mode<br/> defined('yii_debug') or define('yii_debug',true); // specify how many levels of call stack should shown in each log message<br/> defined('yii_trace_level') or define('yii_trace_level',3); require_once($yii); yii::createwebapplication($config)->run(); ?>
if install welcome yii application problem of index.php file in app itself. 1 easy method copy index.php file generated demo app , copy paste in original app. make sure keep app in same place kept demo app. also, make sure vendor directories there if have used composer well. check if permissions given correctly folders. runtime , assets folder. if in doubt can chmod 777 on them. if still giving error there must problem using within app missing something. p.s please express error message can better idea of problem facing.
Comments
Post a Comment