fatal error on server

i use mysql on server in basic project with under configure:




return [

    'class' => 'yii\db\Connection',

    'dsn' => 'mysql:host=localhost;dbname=dorna_transferstudent',

    'username' => 'dorna_student_de',

    'password' => 'pass',

    'charset' => 'utf8',

];



but i have this error:

2016-02-08 10:22:48 [217.219.81.121][-][597c80ef5cfa7807d0131da2de1d37ef][error][yii\base\ErrorException:32] exception ‘yii\base\ErrorException’ with message ‘Module ‘pgsql’ already loaded’ in Unknown:0

i don’t know why this error about pgsql

What are the call stacks?

thanks for replay,my log file is this:

2016-02-08 11:42:05 [217.219.81.121][-][abf40310095601e45ce745f28d8b22d7][error][yii\base\ErrorException:32] exception ‘yii\base\ErrorException’ with message ‘Module ‘pgsql’ already loaded’ in Unknown:0

Stack trace:

#0 [internal function]: yii\base\ErrorHandler->handleFatalError()

#1 {main}

2016-02-08 11:42:05 [217.219.81.121][-][abf40310095601e45ce745f28d8b22d7][info][application] $_GET = [

'r' => 'site/index'

]

Sorry, but I deleted some of your error log. I thought you should not disclose your server information too much.

It looks to me a simple error in your configuration. Did your app work as expected before you configured the database?

i extract basic project structure on server but i have this error.i dont know why this error happened?

I just want to make sure what you did so far.

Did you follow the instructions of the guide to install Yii and the basic project template?

And did you successfully see the "Congratulations" page?

http://www.yiiframework.com/doc-2.0/guide-start-installation.html

yes i followed the guide and i could see "Congratulations" page. i had the error in end of page:

Ah, OK.

Probably you have an error in your php.ini, including "mod_pgsql" twice.

thanks,i had just only access cpanel on server and i cant find "php.ini".Is there any way i can fix this problem?

Consult your server’s help desk.