Skip to content

Installing FOSSBilling

  • A domain or subdomain dedicated to FOSSBilling.
  • A server that meets the system requirements.
  • A web server running a FOSSBilling-compatible configuration.

Apache usually requires no extra application-specific configuration. The templates below for other web servers should be treated as starting points and adjusted for your own paths, SSL settings, and deployment conventions.

FOSSBilling includes a ready-to-use .htaccess file for Apache and LiteSpeed / OpenLiteSpeed. Set up your domain as you normally would, then proceed with installation.

OpenLiteSpeed users: After installation, remember to reload the web server so it picks up the new .htaccess file.

  1. Download FOSSBilling: Download the latest stable release from our downloads page.
  2. Prepare your database: Create a new MariaDB/MySQL database and a dedicated user for this installation. Keep the credentials handy for the installer.
  3. Set up SSL: If you plan to use HTTPS, and you should, configure and verify your certificate before you start the installer.
  4. Configure reverse-proxy headers: If you run behind a reverse proxy, forward the X-Forwarded-Host and X-Forwarded-Proto headers so FOSSBilling can generate the correct URLs and enforce HTTPS properly.
  1. Clean your document root: Remove placeholder files created by your control panel, such as default index pages or sample .htaccess files, so they do not interfere with routing.

  2. Upload and extract FOSSBilling: Upload the release you downloaded and extract it into your document root. Your directory should look similar to this:

    • Directorydata/
      • …
    • Directoryinstall/
      • …
    • Directorylibrary/
      • …
    • Directorylocale/
      • …
    • Directorymodules/
      • …
    • Directorythemes/
      • …
    • Directoryvendor/
      • …
    • config-sample.php
    • cron.php
    • di.php
    • index.php
    • load.php
    • ...
  3. Launch the installer: Visit the domain you set up for FOSSBilling. If you are using HTTPS, access it over https:// so the application configures secure URLs automatically.

    If you see the FOSSBilling installer welcome page below, you're ready to proceed. The FOSSBilling Installer Landing Page

  4. Complete the setup wizard: Follow the on-screen steps to accept the license, enter your database credentials, and create your administrator account.

  5. Confirm the public URL: The installer shows a suggested FOSSBilling URL based on how you accessed it. Verify this is the correct public address for your installation (e.g., https://billing.example.com/).

  6. Configure reverse proxy (if detected): If the installer detects forwarded headers from a reverse proxy, it shows a proxy configuration step where you can enable trusted proxy support and review the detected settings. Only enable this if the detected proxy is one you control and trust.

  7. Configure the default currency: Select your currency code (e.g., USD, EUR). The price format is auto-generated; place your currency symbol before or after the {{price}} placeholder, for example {{price}} USD or $ {{price}}.

  8. Install: Click install and wait for the success page to appear.

FOSSBilling uses cron for renewals, email delivery, and other scheduled tasks. The official Docker image schedules cron automatically. For other installations, open System → Settings → Scheduled Tasks in the admin panel and set up one of the methods below.

After setup, check Last Scheduled Execution on the same page to confirm your job ran.

Add the crontab line shown on the installer’s completion screen or under Recommended Schedule in Scheduled Tasks. If your hosting panel asks for the schedule and command separately, set it to run the displayed PHP command every five minutes.

Use guest cron only if local cron is unavailable, since HTTP requests can time out. Turn on Enable Guest Access in Scheduled Tasks and schedule an HTTPS request to the full Guest Cron URL every five minutes. Keep the URL private because it contains the access hash.