Hello,
I have the problem, that I’ve created a webapp localy on my machine and uploaded on my webserver.
I’ve made some little changes in the /protected/config/main.php
dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'pocra',
// preloading 'log' component
'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
// enable URLs in path-format
/*'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'/'=>'<controller>/view',
'//'=>'<controller>/<action>',
'/'=>'<controller>/<action>',
),
),
*/
/*
'db'=>array(
'connectionString' => 'sqlite:protected/data/testdrive.db',
),
*/
// MySQL database
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=XXXXXX',
'emulatePrepare' => true,
'username' => 'XXX',
'password' => 'XXX',
'charset' => 'utf8',
),
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
// uncomment the following to show log messages on web pages
/*
array(
'class'=>'CWebLogRoute',
),
*/
),
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'XXXXXX',
),
);
and in the index.php
<?php
// change the following paths if necessary
$yii=dirname(__FILE__).'/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($yii);
Yii::createWebApplication($config)->run();
?>
and I receive the following error:
The requirement says, that’s all right (except SQLite and APC Extension)