'local', // The database server name or IP address. Usually this is 'localhost' or '127.0.0.1'. 'DB_HOST' => 'REPLACE_ME', // The name of the database to select. 'DB_NAME' => 'REPLACE_ME', // The database username to connect with. 'DB_USER' => 'REPLACE_ME', // The database password to connect with. 'DB_PASS' => 'REPLACE_ME', // The site url to use; it can be hard-coded as well 'SITE_URL' => $protocol . $_SERVER['HTTP_HOST'] . '/', // The base url environmentVariable to use for Assets; it can be hard-coded as well 'BASE_URL' => $protocol . $_SERVER['HTTP_HOST'] . '/', // The base path environmentVariable for Assets; it can be hard-coded as well 'BASE_PATH' => realpath(dirname(__FILE__)) . '/public/', ); // Set all of the .env values, auto-prefixed with `CRAFTENV_` foreach ($craftEnvVars as $key => $value) { putenv("CRAFTENV_{$key}={$value}"); }