Environment variables

The .env file has all the variables that Solital uses. Some are filled in by default, but others you need to edit as needed. Below we will see what each variable does:

  • Displays all errors that Solital or PHP raises. Activate only in development mode
ERRORS_DISPLAY="true"
  • Standard index that Solital uses to store session login. To learn more, see Authenticate
INDEX_LOGIN="solital_index_login"
  • Database connection variables. To find out more, see Katrina ORM
DB_DRIVE=""
DB_HOST=""
DB_NAME=""
DB_USER=""
DB_PASS=""
SQLITE_DIR=""
  • Variables of the NativeMail class
MAIL_SENDER=""
MAIL_RECIPIENT=""
  • Variables of the PHPMailerClass class
PHPMAILER_DEBUG=""
PHPMAILER_HOST=""
PHPMAILER_USER=""
PHPMAILER_PASS=""
PHPMAILER_SECURITY=""
PHPMAILER_PORT=""
  • Variables used in encryption. It is recommended that you add new values to these variables.
FIRST_SECRET="first_secret"
SECOND_SECRET="second_secret"
  • These variables are unique to Windows. Add the path of the executable that dumps the database. To learn more, see Builder SQL
MYSQL_DUMP="C:\\xampp\\mysql\\bin\\mysqldump.exe"
PG_DUMP=""
SQLITE3=""

What to see next?


Built with MkDocs.