Skip to content

LibreNetworks/mofh-fossbilling-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

FOSSBilling-MOFH

Unofficial MyOwnFreeHost (MOFH) Server Manager for FOSSBilling (Working)

This unofficial module adds full integration between FOSSBilling and MyOwnFreeHost, allowing you to automatically create, suspend, and manage free hosting accounts through your MOFH reseller API.


📦 Features

  • ✅ Create, suspend, unsuspend, and terminate hosting accounts
  • ✅ Change account passwords and packages
  • ✅ Retrieve available packages (via JSON API)
  • ✅ Uses /json-api/$function endpoints for all operations
  • ✅ Dynamic cPanel login URLs (https://cpanel.<reseller-domain>)
  • ✅ Configurable reseller domain, API username, and key
  • ✅ Full cURL error handling and logging
  • 🧩 Licensed under Apache 2.0

⚙️ Installation

  1. Download the file
    Get the latest MOFH.php file from this repository.

  2. Copy it into FOSSBilling
    Place the file inside your FOSSBilling installation at:


/library/Server/Manager/MOFH.php

  1. Add the Server in FOSSBilling Admin Panel
  • Go to Settings → Servers → Add new server
  • Choose MyOwnFreeHost (MOFH) from the server type list
  • Enter your:
    • API Username
    • API Password
    • Reseller Domain (example: myreseller.com)
  1. Test the connection
  • Click Test Connection
  • If successful, you’ll see “MOFH connection successful”

🧠 Usage Notes

  • The module uses the MOFH JSON API for all major functions:

  • Unsupported operations such as IP or username changes will return standardized FOSSBilling Server_Exception messages.


🖥️ Login URLs

Type URL Pattern
cPanel (per client) https://cpanel.<reseller-domain>
Reseller Panel https://panel.myownfreehost.net/

Example:
If your reseller domain is examplehost.com, the client login will be
👉 https://cpanel.examplehost.com


🧾 License

FOSSBilling-MOFH works and it is licensed under Apache 2.0.


🤝 Contributing

Pull requests, feature suggestions, and improvements are welcome!
Just fork this repository, make your changes, and submit a PR.


🧩 Credits

  • Built for FOSSBilling
  • Based on the MyOwnFreeHost Reseller API
  • Licensed under the Apache 2.0 license

About

An unofficial FOSSBilling module for MyOwnFreeHost

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages