Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    2

    Default Can site creation be completely automated?

    I am considering leasing a managed server from a provider that uses WHM/cPanel in their managed server package. I have been a reseller for my current host and am versed in the manual method of creating a site using the forms in WHM.

    However, I would like to take the site-creation process a step further. WHM has an API that includes a number of functions. Is it possible to use those functions (or custom scripts) to automate the site-creation process as follows:
    (1) gather information from a visitor using forms at my hosting site,
    (2) use that input to create the user's site,
    (3) install a configured MySQL db,
    (4) install a standard set of custom php scripts on the site (e.g. a CMS),
    (5) set a random password, and
    (6) post an email to the customer with all the information necessary for login?

    In other words, I want to sell websites containing an installed CMS completely automatically, with no human intervention beyond the customer's input.

    Is this possible, and, if so, how do I go about learning how to do it?

  2. #2
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    Quote Originally Posted by firewoodtim View Post
    I am considering leasing a managed server from a provider that uses WHM/cPanel in their managed server package. I have been a reseller for my current host and am versed in the manual method of creating a site using the forms in WHM.

    However, I would like to take the site-creation process a step further. WHM has an API that includes a number of functions. Is it possible to use those functions (or custom scripts) to automate the site-creation process as follows:
    (1) gather information from a visitor using forms at my hosting site,
    (2) use that input to create the user's site,
    (3) install a configured MySQL db,
    (4) install a standard set of custom php scripts on the site (e.g. a CMS),
    (5) set a random password, and
    (6) post an email to the customer with all the information necessary for login?

    In other words, I want to sell websites containing an installed CMS completely automatically, with no human intervention beyond the customer's input.

    Is this possible, and, if so, how do I go about learning how to do it?
    yes it's all possible. I would do it by putting your base scripts in the /root/cpanel3-skel directory. when whm creates a new account, the data you put in that directory gets replicated into the new account's dir structures.
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  3. #3
    Member trochia's Avatar
    Join Date
    Aug 2008
    Posts
    19

    Default

    Have a sample script for doing the database inserts?

    Thx...Jim

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    2

    Default

    Quote Originally Posted by trochia View Post
    Have a sample script for doing the database inserts?

    Thx...Jim
    Right, that's a problem. I've got an "install.php" script that would be included in the directory of scripts to be installed, but that has to be automatically runs as part of the setup.

Similar Threads & Tags
Similar threads

  1. automated cPanel creation and access
    By skyfe in forum cPanel Developers
    Replies: 3
    Last Post: 03-22-2011, 10:44 AM
  2. Automated mySQL DB creation script?
    By rbro in forum cPanel Developers
    Replies: 10
    Last Post: 11-06-2009, 01:15 PM
  3. Creating Automated Account Creation
    By dkelso in forum New User Questions
    Replies: 15
    Last Post: 01-22-2005, 11:51 AM
  4. Automated Account Creation
    By Artifice in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 09-18-2004, 04:57 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube