2

i wanted update a new installed craft3 and got this message: enter image description here

I took a look in the web.log file. The first line from today gives an error: 2018-04-25 03:39:23 [85.7.133.198][-][-][error][yii\base\InvalidConfigException] yii\base\InvalidConfigException: Unsupported DB driver value: in /home/velolade/craft3/vendor/craftcms/cms/src/config/DbConfig.php:187

What's wrong here? Thank you in advance for help!

1

The original poster solved this in a follow-up comment:

After checking the log file - see my other question -, i activated the php functions "proc_open" and "proc_close" at my hoster's php settings and it worked. I'm not sure if i can leave these settings.

proc_open and proc_close are required if you want Craft 3 to automatically backup your database because it uses the native mysqldump and pg_dump binaries to perform the backup.

If, for whatever reason, you can't enable those methods, your options are to:

  1. Set the backupCommand config setting to false. This will prevent Craft from performing database backups and you'll be responsible for manually creating them.

  2. Set the backCommand config setting to some other script or service that can perform a backup without using those disabled methods. Craft will respect whatever is set in this config setting.

  • Anyone actually do this yet (implement alternate way)? Would be amazing with a config flag to use a method not reliant on proc_open and so forth for us wrangling open_directory hosting... – Anders Sep 28 '18 at 2:33
0

Is the DB_DRIVER line set in your .env file? You may need to run the ./craft setup script.

  • Thanks! I checked my .env file: DB Driver ist set to: DB_DRIVER="mysql". I also realized that i couldn't backup my database. After checking the log file - see my other question -, i activated the php functions "proc_open" and "proc_close" at my hoster's php settings and it worked. I'm not sure if i can leave these settings. – TomS Apr 30 '18 at 19:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.