BoxBilling is a free and open source alternative to WHMCS and similar software.
It provides billing, ticketing, and support solutions as well as server management and additional functionality through plugins.
It has built in integration support for server managers, payment adapters, and domain registers.
Complete client management, billing & support software. You can sell any product imaginable - web hosting, software licenses, servers, downloadable products and setup any custom products.