Configuration Setup of .env and Database - DEXBOT
Skip to navigation Skip to main content
LOGB
  • Home
  • Blog
  • Catalog
  • Update
  • Instruction manual
  • Documentation
  • Support
  • TELEGRAM DEMO
Login / Register
Sign in Create an Account

Lost your password?

  • English
    • Русский
    • English
    • Deutsch
    • 中文 (中国)
    • Español
    • فارسی
    • हिन्दी
    • Italiano
    • 日本語
    • Tiếng Việt
    • Français
    • 한국어
    • Türkçe
    • العربية
    • Português
    • বাংলা
LOGB
  • English
    • Русский
    • English
    • Deutsch
    • 中文 (中国)
    • Español
    • فارسی
    • हिन्दी
    • Italiano
    • 日本語
    • Tiếng Việt
    • Français
    • 한국어
    • Türkçe
    • العربية
    • Português
    • বাংলা

Quick start

2
  • Create a Telegram Bot and Get the Token
  • Quick DEXBOT Installation

Telegram BOT EN

10
  • GRID BOT
  • Token setup
  • Setting up trading indicators
  • Bot Settings
  • Trading Settings
  • Selected Blockchain Overview
  • Blockchain Settings
  • Closed Trades
  • Active Trades
  • Main Menu

Setting up a VPS

7
  • DEXBOT version Update
  • Basic Commands for Working with a Linux VPS Server
  • Creating and Activating Systemd Services for Running Bots
  • Configuration Setup of .env and Database
  • Deploying the Bot on the Server
  • Server and Folder Preparation
  • Generating and Preparing the Secret Key

Website Documentation

4
  • Using a coupon (promo code) to get a discount
  • Two-Factor Authentication
  • License — Reset Device
  • Affiliate Program
  • Home
  • Documentation
  • Setting up a VPS
  • Configuration Setup of .env and Database
View Categories

Configuration Setup of .env and Database

2 мин. чтения



After the server restarts, you need to configure the .env file and gain access to the database to ensure the bot operates correctly.


📝 Preparing the .env Configuration File #

The .env file contains all important parameters the bot uses to connect to external services and the database. Filling it out correctly is key to stable operation.

    1. Connect to the server via SSH (if not already connected):
      ssh root@SERVER_IP_ADDRESS

      Replace SERVER_IP_ADDRESS with your actual server IP.

    2. Navigate to the bot directory:
      cd /MYBOTS/DEXBOT/

      Make sure you are in the bot folder — it should contain all necessary scripts.

    3. Find the config template and create the working .env file:
      mv .env.template .env

      This creates the .env file from the template, which you need to fill in.

    4. Open .env in any text editor, for example nano or vim:
      nano .env
    5. Fill in all the required fields:
      • License Key: Your personal DEXBOT key to activate the bot.
      • OKX API: Enter the API Key, Secret, and Passphrase for OKX services.
      • Wallets: Addresses for Solana and EVM blockchains (e.g., Ethereum, Binance Smart Chain, etc.).
      • Telegram Token and Admin ID: Your Telegram bot token and administrator ID for managing the bot.
      • Database settings: Host, port, username, password, and database name you specified earlier during installation.

After filling in, save the file and exit the editor (in nano: Ctrl+O → Enter → Ctrl+X).

  1. Important: be careful entering data — configuration errors may cause failures.

🔐 Accessing the Database via Adminer Web Interface #

After successful installation and server reboot, the database is ready to use. For easy management, use the Adminer web interface.

  1. Open your browser and go to:
    http://SERVER_IP_ADDRESS

    Replace SERVER_IP_ADDRESS with your server’s IP address.

  2. You will see the Adminer login page — a simple and lightweight database management tool.
  3. Enter the admin username and password you set during installation.
  4. After login, you can browse tables, make backups, run queries, and monitor database operations.

🔧 Security and Maintenance Recommendations #

  • Never share or expose the .env file to third parties — it contains confidential data.
  • Regularly back up your database, especially before major changes.
  • If you modify the .env file, restart the bot afterward to apply the new settings.
  • Use Adminer only from a secure network to prevent unauthorized access.
  • Keep your server and database software updated to protect against vulnerabilities.
Rate this document?
Updated on July 31, 2025
Creating and Activating Systemd Services for Running BotsDeploying the Bot on the Server
Table of Contents
  • 📝 Preparing the .env Configuration File
  • 🔐 Accessing the Database via Adminer Web Interface
  • 🔧 Security and Maintenance Recommendations

© 2026 DEXBOT. All rights reserved

  • Home
  • Blog
  • Catalog
  • Update
  • Instruction manual
  • Documentation
  • Support
  • TELEGRAM DEMO
Telegram
We use cookies to ensure you get the best experience on our website. By continuing to use this site, you agree to our use of cookies.
More info More info Accept
Home
0 items Cart
My account
Menu