mySQL and php question

Hi Guys,

If i need to change the config file here

<?php
session_start();
return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=livecrm_livecrm2',
            'username' => 'livecrm_livecrm2',
            'password' => 'livecrm2',
            'charset' => 'utf8',


			/*
			 'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
			*/
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@livefactory/mail',
            // send all mails to a file by default. You have to set
            // 'useFileTransport' to false and configure a transport
            // for the mailer to send real emails.
            'useFileTransport' => false ,
						'transport' => [
							'class' => 'Swift_SmtpTransport',
							'host' => $_SESSION['smtp_host'],
							'username' => $_SESSION['smtp_username'],
							'password' => $_SESSION['smtp_password'],
							'port' => $_SESSION['smtp_port'],
							'encryption' =>$_SESSION['smtp_encryption'],// 'ssl',
						],
        ],
    ],
];

Open in new window


Do I change both instances or just one? Because i cant get it working here?

http://91.109.247.179/~radiocom/projects/livecrm/

Thanks for all your help
jonathanduane2010Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
Do I change both instances or just one? Because i cant get it working here?
Both instances of ... ?
0
jonathanduane2010Author Commented:
'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=livecrm_livecrm2',
            'username' => 'livecrm_livecrm2',
            'password' => 'livecrm2',
            'charset' => 'utf8',


                  /*
                   'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
0
Julian HansenCommented:
   /* <==== START COMMENT
                   'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8', 

Open in new window


There is only one configuration - the other items are commented out
Anything between
/*
*/
Is a comment.
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Julian HansenCommented:
If I browse to your URL I see only folders - I am expecting to see an index.php which does not exist. Are you sure
a) All files are uploaded
b) You are pointing to the right folder?
0
jonathanduane2010Author Commented:
thanks Julian,

Ok i am think i am gettting somewhere now

http://91.109.247.179/projects/livecrm/web/

However i dont know what the error means
0
Julian HansenCommented:
Looks like your server is not configured with the multibyte extension

See forum posts here
http://www.yiiframework.com/forum/index.php/topic/50483-mb-strlen/

See PHP mbstring installation instructions here
http://php.net/manual/en/mbstring.installation.php
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.