I’ve tried a few of these suggestions. I still can’t get /user/user/install to work, so have been using index.php?r=user/user/install. I think I am getting closer; the page now reads ‘The system is unable to find the requested action “install”.’
My config.php looks like this. Any suggestions warmly welcomed!
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias(‘local’,‘path/to/local-folder’);
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'JPIM',
// 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,
'loginUrl' => array('user/user/login'),
),
/* JSH: Added code to use User module for security */
'User'=>array(
'class' => 'User',
),
/*
'db'=>array(
'connectionString' => 'sqlite:protected/data/testdrive.db',
),
*/
// uncomment the following to use a MySQL database
'db'=>array(
'connectionString' => 'mysql:host=192.168.1.98;dbname=xxxx;port=8889',
'emulatePrepare' => true,
'username' => 'xxxx',
'password' => 'xxxx',
'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'=>'example@gmail.com',
),
'modules' => array(
'user' => array(
'debug' => true)
),
/* JSH this raises error: Property "CWebApplication.urlManager" is read only, so have commented this out!
'urlManager' => array(
'urlFormat'=>'path',
),
*/
);