Results 1 to 4 of 4

Thread: Help .env

  1. #1
    User
    Join Date
    05-21-18.
    Posts
    126

    Default Help .env

    Can someone explain to me why and how .env file is used?
    I tried to find an answer for Contao, but I couldn't understand it fully

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    The .env file holds the credentials for the Contao dev mode (https://example.com/app_dev.php). The file is generated via

    • console command: php vendor/bin/contao-console contao:install-web-dir --user=USER --password=PASSWORD
    • Contao Manager (as of Contao 4.5)
    Contao Community Moderator
    → Support options

  3. #3
    User
    Join Date
    05-21-18.
    Posts
    126

    Default

    Ok. But can you explain me usage of .env. How to use it and why

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    Usage? I have already told you for what the file is needed (Contao Debug Mode). The file is generated automatically by e.g. the Contao Manager (as of Contao >= 4.5) or via the console command (see above). So you don't have to worry about this .env file.

    You can also enter the access data manually into the .env file: https://php-password-hash-online-too.../password_hash
    Contao Community Moderator
    → Support options

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •