An open source control panel application that already exists is
webmin. No, it's not as feature-rich as cPanel, nor is it designed with hosting accounts and resellers in mind, but you can use it to do most Unix administration tasks from a web browser.