How to Reset Cockpit Login Access Print

  • 0

If you've been locked out of your Cockpit account, you can reset the login credentials by deleting the SQLite database file. This article guides you through the process of regaining access to your Cockpit installation.

What You'll Need

  • Access to your web server's file system (via FTP, cPanel, aaPanel, hPanel, or similar)
  • Your hosting account credentials

Step-by-Step Instructions

Using FTP Client

  1. Connect to your server via FTP
    • Launch your FTP client (FileZilla, WinSCP, etc.)
    • Enter your FTP credentials
    • Connect to your server
  2. Navigate to the database location
    • Go to your Cockpit installation directory
    • Navigate to the /includes/db/ subfolder
    • Locate the file named cockpit.sqlite
  3. Delete or rename the database file
    • Right-click on cockpit.sqlite
    • Select "Delete" to remove it completely
    • Alternatively, rename it to cockpit.sqlite.backup for safekeeping

Using cPanel

  1. Access File Manager
    • Log in to your cPanel account
    • Click on "File Manager" in the Files section
  2. Navigate to the database location
    • Browse to your Cockpit installation folder
    • Open the /includes/db/ directory
    • Find cockpit.sqlite
  3. Delete the database file
    • Select the file cockpit.sqlite
    • Click "Delete" from the top menu
    • Confirm the deletion

Using aaPanel

  1. Access File Manager
    • Log in to your aaPanel
    • Click on "File" in the left sidebar
  2. Navigate to the database file
    • Browse to your Cockpit installation directory
    • Open the /includes/db/ folder
    • Locate cockpit.sqlite
  3. Delete the file
    • Right-click on cockpit.sqlite
    • Select "Delete" from the context menu
    • Confirm when prompted

Using Hostinger's hPanel

  1. Access File Manager
    • Log in to your Hostinger account
    • Go to your hPanel dashboard
    • Click on "File Manager"
  2. Navigate to the database location
    • Browse to your Cockpit installation directory
    • Open the /includes/db/ folder
    • Find the cockpit.sqlite file
  3. Delete the database file
    • Select cockpit.sqlite
    • Click "Delete" in the top menu
    • Confirm the deletion

What Happens Next

After deleting the cockpit.sqlite database file:

  1. Database Recreation: When you next access your Cockpit application, it will automatically create a new database file
  2. First-Run Experience: You'll be presented with the initial setup screen
  3. Create New Credentials: You can create a new admin username and password

Important Notes

  • This process resets ALL user accounts, not just the admin account
  • Any custom settings stored in the database will be lost
  • Your application data remains intact as it's stored separately
  • Consider backing up the SQLite file before deletion if you're unsure
  • This method should only be used when you have no other way to access your account

If you continue to experience issues after resetting the database, please contact our support team for further assistance.


Was this answer helpful?

« Back