Skip to content

Manual Admin Password Reset

Use this guide when you have lost admin access and cannot use the password reset feature. These steps use phpMyAdmin.

  1. Open Your Database

    Log in to phpMyAdmin and select your FOSSBilling database. You can find the database name in config.php.

    If you need help accessing phpMyAdmin, contact your hosting provider.

  2. Edit Your Admin Account

    1. Click the Structure tab to see all tables
    2. Open the admin table

    Selecting the admin table

    1. Click the Browse tab to see all admin accounts
    2. Find your account and click Edit

    Clicking the Edit button on your account row

  3. Set a Temporary Password

    The pass field needs a bcrypt hash. Generate one locally with Bash and PHP on a machine you trust. Do not use online hashing tools.

    Terminal window
    IFS= read -r -s -p 'Temporary password: ' fossbilling_temp_password
    printf '\n'
    printf '%s' "$fossbilling_temp_password" |
    php -r 'echo password_hash(stream_get_contents(STDIN), PASSWORD_BCRYPT), PHP_EOL;'
    unset fossbilling_temp_password

    Enter a temporary password at the prompt. It will not appear on screen or in your shell history.

    1. Copy the generated hash
    2. Paste it into the pass field
    3. Click Go to save

    Pasting the hash and saving

  4. Log In and Change Your Password

    Log in with your temporary password, then change it:

    1. Click your name in the top right corner
    2. Go to Profile
    3. Switch to the Change Password tab
    4. Set a strong, unique password