Results 1 to 4 of 4

Thread: System to generate websites with "one click"

  1. #1
    Member
    Join Date
    May 2012
    Posts
    5
    cPanel/WHM Access Level

    Website Owner

    Default System to generate websites with "one click"

    Newbie question.

    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?

    Thanks...

  2. #2
    Member morissette's Avatar
    Join Date
    May 2009
    Location
    Austin, TX
    Posts
    103
    cPanel/WHM Access Level

    Root Administrator

    Default Re: System to generate websites with "one click"

    All things are possible with the power of Perl.

    1. => WHMCS
    2. => Custom Module for WHMCS
    3. => Hook for wwwacct that takes arguments for template.

  3. #3
    Member
    Join Date
    May 2012
    Posts
    5
    cPanel/WHM Access Level

    Website Owner

    Default Re: System to generate websites with "one click"

    Thanks...I was hoping for something that didn't require root access...but maybe what I am imagining is not possible without it.

    So given an existing cPanel instance there is no way to create subdomains via a PHP call to an API?

    I don't want to create new hosting accounts...just new subdomains under an existing account, then populate the directory structure under public_html from a source template directory.

  4. #4
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,147
    cPanel/WHM Access Level

    Root Administrator

    Default Re: System to generate websites with "one click"

    I would have thought you could do this with a reseller account. WHMCS can use a reseller account so you should be able to craft something together as a non-root user.
    White Dog Green Frog - web hosting and web development since 2002
    Blogs: SMB web use cPanel/WHM scripts

Similar Threads

  1. is it possible to migrate websites with "1 click"?
    By helmuc in forum New User Questions
    Replies: 6
    Last Post: 01-09-2012, 06:36 AM
  2. Changed system files - No info in "New" or "Chaneg Log"
    By aquagerbil in forum New User Questions
    Replies: 3
    Last Post: 09-22-2010, 09:50 AM
  3. Replies: 2
    Last Post: 04-14-2009, 05:00 PM
  4. In webmail how do you change the "Click here for secure site link"
    By napalm1 in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 10-21-2003, 01:50 AM