How to setup Test Env from a Production Env

I have a product environment that uses Yii, PHP, MYSQL, SVN that was created by a consultant that no longer works here and resides in his home directory

I would like to setup a development environment to make changes and learn his code.

My approach was to create a new domain, setup new mysql data, import contents of database from production system and copied over the iii & hdocs directories. Still using the same SVN

I then updated the main.php and UserIdentity.php files

When I log in it is still using the UserIdentity.php from the production system. It appears somehow it is retained it relationship. Thinking it maybe something to do

with SVN but not sure.

Can someone tell me how I can duplicate the production environment from one user over to a new domain with a different user account

index.php is




<?php

$yii = dirname(__FILE__) . '/framework/yii.php';

$config = dirname(__FILE__) . '/protected/config/main.php';

defined('YII_DEBUG') or define('YII_DEBUG', false);

require_once($yii);

Yii::createWebApplication($config)->run();



index-dev.php can be …




<?php

$yii = dirname(__FILE__) . '/framework/yii.php';

$config = dirname(__FILE__) . '/protected/config/main-dev.php';

defined('YII_DEBUG') or define('YII_DEBUG', false);

require_once($yii);

Yii::createWebApplication($config)->run();



and so on …

Also check this: http://www.yiiframework.com/extension/yii-environment