I want to learn how to build a system that generates websites for my clients. For example:
1. User registers and signs on to a secure session.
2. User picks a base design template (which is really the same HTML static pages, but varying CSS files depending on which template he selects).
3. User clicks "go" and my code instantiates the file structure, subdomain pointer and email accounts.
4. After DNS propagation, he can surf directly to www. foo.com (or foo.parentsite.com) and see the result of his efforts.
For step #3 should I be learning how to use the cPanel APIs to get that done? Am I at least even a little bit on the right track, or am I staring into an abyss?