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.
- ✅ Create, suspend, unsuspend, and terminate hosting accounts
- ✅ Change account passwords and packages
- ✅ Retrieve available packages (via JSON API)
- ✅ Uses
/json-api/$functionendpoints 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
-
Download the file
Get the latestMOFH.phpfile from this repository. -
Copy it into FOSSBilling
Place the file inside your FOSSBilling installation at:
/library/Server/Manager/MOFH.php
- 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)
- Test the connection
- Click Test Connection
- If successful, you’ll see “MOFH connection successful”
-
The module uses the MOFH JSON API for all major functions:
-
Unsupported operations such as IP or username changes will return standardized FOSSBilling
Server_Exceptionmessages.
| 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
FOSSBilling-MOFH works and it is licensed under Apache 2.0.
Pull requests, feature suggestions, and improvements are welcome!
Just fork this repository, make your changes, and submit a PR.
- Built for FOSSBilling
- Based on the MyOwnFreeHost Reseller API
- Licensed under the Apache 2.0 license