Skip to content

Best Practices

Good application security starts with good operational security. If your server or network is compromised, FOSSBilling cannot protect you on its own.

  • Apply operating system security patches promptly
  • Keep FOSSBilling updated to the latest version
  • Update all server software (web server, database, PHP)
  • Don't run services as root — use sudo when needed
  • Use SSH keys instead of passwords for server access
  • Disable root login over SSH
  • Use a firewall to close unnecessary ports
  • Don't expose your database to the internet unless absolutely necessary
  • Use strong, unique passwords for database accounts
  • Limit database user privileges to what's required
  • Always use HTTPS in production
  • Set force_https to true in your FOSSBilling config
  • Use valid SSL certificates (Let's Encrypt is free and easy)
  • Keep mode set to strict in your security config
  • Don't increase session_lifespan unnecessarily
  • Log out when you're done working
  • Use strong, unique passwords for admin accounts
  • Consider restricting admin panel access by IP if possible
  • Regularly review admin activity logs

We continue to improve FOSSBilling's security posture. Keep an eye on:

See something concerning? Report it responsibly.