Installing silverstripe

** Silverstripe 4.12.1:**

hello friend, newb here. I’m having a first-time login error, I have no idea how to sort out this,

error;
Silverstripe Framework requires a “database” key in DB::getConfig(). Did you forget to set SS_DATABASE_NAME or SS_DATABASE_CHOOSE_NAME in your environment?

this is my .env

DB credentials

SS_DATABASE_SERVER=‘localhost’
SS_DATABASE_USERNAME=‘root’
SS_DATABASE_PASSWORD=‘root’
SS_DATABASE_NAME=‘silverstripe’
SS_ENVIRONMENT_TYPE=‘dev’
SS_DATABASE_CLASS=‘MySQLDatabase’
SS_DEFAULT_ADMIN_USERNAME=‘admin’
SS_DEFAULT_ADMIN_PASSWORD=‘admin’

I’m looking for a help to sort this out. thank you

Your .env file is weird: it has fancy quotes. I suspect you edited it with a word processor instead of a plain text editor.

@ntd sorry i didn’t get you ??

you mean

SS_DATABASE_SERVER=“localhost”
SS_DATABASE_USERNAME=“root”
SS_DATABASE_PASSWORD=“root”
SS_DATABASE_NAME=“silverstripe”
SS_ENVIRONMENT_TYPE=“dev”
SS_DATABASE_CLASS=“MySQLDatabase”
SS_DEFAULT_ADMIN_USERNAME=“admin”
SS_DEFAULT_ADMIN_PASSWORD=“admin”

:thinking: :thinking: :thinking:

The above still have fancy double quotes (also called smart quotes). It does not matter if you use single or double quotes, but they must be plain/straight/dumb quotes: whatever program you are using in editing text it is not the right tool.

# Your first message, smart single quotes: wrong
SS_DATABASE_SERVER=‘localhost’
# Your second message, smart double quotes: wrong
SS_DATABASE_SERVER=“localhost”
# Plain single quote: right
SS_DATABASE_SERVER='localhost'
# Plain double quote: right
SS_DATABASE_SERVER="localhost"

@ntd thank you, my .env is now working but still I cannot go to the installation page.
now showing like this

XAMPP
PHP 8.2.0
PHP extensions installed: intl, mbstring, openssl, and fileinfo.

This is another issue. Check your webserver logs and open a new topic here providing more info if you are unable to fix it by yourself (I bet this is due to a missing extension).

Thank you! I had the exact same issue!!
darn quotes.