<p>i am trying to instal Craft CMS 3 on hosting and everytime it is going to fall on:</p>

<blockquote>
  <p>2019-07-05 16:33:55
  [-][-][-][error][craft\base\ApplicationTrait::getIsDbConnectionValid]
  There was a problem connecting to the database: Unsupported DB driver
  value:  2019-07-05 16:33:55
  [-][-][-][error][yii\base\InvalidConfigException]
  yii\base\InvalidConfigException: Unsupported DB driver value:  in
  /data/web/virtuals/136413/virtual/www/subdom/duetback/vendor/craftcms/cms/src/config/DbConfig.php:188</p>
</blockquote>

<p>On installation page i can se:</p>

<blockquote>
  <p>An internal server error occurred.</p>
</blockquote>

<p>I have no idea, what is going on.</p>

<p>On localhost everthing goes fine with same settings.</p>

<p>Thank you!</p>

<p>Ondrej</p>

CC BY-SA 4.0
2019-07-05T17:39:40.327Z
How you confirmed that the database config and credentials in the .env file are correct, and that general.php is selecting the correct .env file?
Simon Kuran
CC BY-SA 4.0
2019-07-05T22:07:18.980Z
I cannot get to installation, so i didnt fill the database config and credentials

How can I set in general.php reference to .env file?
Ondrej
CC BY-SA 4.0
2019-07-07T21:27:16.680Z
Rename this file to .env and fill in the correct values: https://github.com/craftcms/craft/blob/master/.env.example, then they get pulled into `config/db.php` by using `getenv()` https://github.com/craftcms/craft/blob/master/config/db.php
Brad Bell
<error><install><installation>
Installing Craft CMS 3 on hosting - Unsupported DB driver value
# Installing Craft CMS 3 on hosting - Unsupported DB driver value

(Asked by: username_0 on 2019-07-05)

i am trying to instal Craft CMS 3 on hosting and everytime it is going to fall on:

> 2019-07-05 16:33:55
> [-][-][-][error][craft\base\ApplicationTrait::getIsDbConnectionValid]
> There was a problem connecting to the database: Unsupported DB driver
> value: 2019-07-05 16:33:55
> [-][-][-][error][yii\base\InvalidConfigException]
> yii\base\InvalidConfigException: Unsupported DB driver value: in
> /data/web/virtuals/136413/virtual/www/subdom/duetback/vendor/craftcms/cms/src/config/DbConfig.php:188

On installation page i can se:

> An internal server error occurred.

I have no idea, what is going on.

On localhost everthing goes fine with same settings.

Thank you!

Ondrej

**Tags:** error, install, installation
> **Comments:**
> **username_1**: How you confirmed that the database config and credentials in the .env file are correct, and that general.php is selecting the correct .env file?  
> **username_0**: I cannot get to installation, so i didnt fill the database config and credentials  How can I set in general.php reference to .env file?  
> **username_2**: Rename this file to .env and fill in the correct values: https://github.com/craftcms/craft/blob/master/.env.example, then they get pulled into `config/db.php` by using `getenv()` https://github.com/craftcms/craft/blob/master/config/db.php  

---

## 0 answers

