script to install Wordpress in cPanel on new account creation?

31 replies
I'm looking for a script that can be installed into a cPanel hosting environment that hooks into their framework and allows a Wordpress blog to be installed and configured with a bunch of default settings WHEN A NEW ACCOUNT (domain) IS CREATED.

cPanel has an entire API and there are tons of things you can do "under the hood" if you know what you're doing.

I know how to install Wordpress, manually and from Fantastico, and there are lots of tools that do it as well. I'm not asking about them.

Right now I'm simply looking for a script of any kind that hooks into the cPanel API that will create a Wordpress blog when a new account is created (in a Reseller-type account).
#account #cpanel #creation #install #script #wordpress
  • Profile picture of the author doop
    post deleted
    {{ DiscussionBoard.errors[1985283].message }}
  • Profile picture of the author SageSound
    Fantastico takes about 30 seconds and is a "one-click" solution, more or less.

    SimpleScripts looks like Fantastico for hosts that don't offer it.

    That's not the same as having it set up WHEN the account is created. That's a "zero-click" solution.
    {{ DiscussionBoard.errors[1985290].message }}
  • Profile picture of the author stma
    Imacros for firefox. Set up a macro for the registering of the domain, setting up the hosting, creating blog, etc...

    Your way would still leave things to configure like naming categories, keywords for seo plugins, etc...
    {{ DiscussionBoard.errors[1985741].message }}
  • Profile picture of the author stma
    Ignore that - you are trying to to set it up for those that buy your hosting............

    Can be done with curl but you will find that you still need data beyond the domain name at creation.
    {{ DiscussionBoard.errors[1985744].message }}
  • Profile picture of the author SageSound
    It's fine to have it clone a "templated" installation. Like using a SQL dump file and a zip file with all of the WP files in it.

    There will be things that need to be tweaked. That's fine.

    Look at what Fantastico does -- you enter about 5 lines of data and it does the rest. And other than the install folder name, which would be pre-set, the other data can just be defaulted so you can tweak it after logging-in the first time.

    I just want the blog installed and ready-to-go when the account is created.

    Look at the incredible array of things that are already created when you set up a new account. Auto-creating a Wordpress blog cannot be anywhere near as difficult as what goes into many of the other things that are auto-created, like FTP accounts, MAIL accounts, DNS entries, and so on.
    {{ DiscussionBoard.errors[1985761].message }}
    • Profile picture of the author stma
      Originally Posted by SageSound View Post

      It's fine to have it clone a "templated" installation. Like using a SQL dump file and a zip file with all of the WP files in it.

      There will be things that need to be tweaked. That's fine.

      Look at what Fantastico does -- you enter about 5 lines of data and it does the rest. And other than the install folder name, which would be pre-set, the other data can just be defaulted so you can tweak it after logging-in the first time.

      I just want the blog installed and ready-to-go when the account is created.

      Look at the incredible array of things that are already created when you set up a new account. Auto-creating a Wordpress blog cannot be anywhere near as difficult as what goes into many of the other things that are auto-created, like FTP accounts, MAIL accounts, DNS entries, and so on.
      It's not plug and play though. Here is how you do it - or ask for it to be done if you are hiring a programmer.

      Putting the core wordpress files inside the cp-skeleton directory will make them appear under any new accounts you create.... that includes if you create with the api.

      The cpanel api will allow you to create the database and user after you create the account. Store user/pass in a session or something while you rewrite the wp-config.php file dynamically on their account.

      Then the first time they visit their site they will be presented with the install form for WP with everything there.

      A few problems might pop up though....

      Permission might not be right this way though so you have to spend a few minutes looking at the permissions of a fully functional wp install. As long as their wp files are on your server you can chmod them with something like this:

      $ftpserver = "localhost";
      $ftpc = ftp_connect($ftpserver);
      ftp_chmod($ftpc, 0755, 'wp-content');

      As a warning WP 3.0 is coming and there are new security features already dropping into the 2.9 branch of wordpress such as wp-once which acts sort of like a session for interacting with the database, installing plugins, etc... it's going to cause havoc with whatever you come up with now.
      {{ DiscussionBoard.errors[1985826].message }}
      • Profile picture of the author SageSound
        I'm aware of the permissions issues. Obviously the Fantistico guys have fixed the problem. (Usually it's dealt with by enabling the SID/GID perms on files, but I don't know if that would work on brand new accounts.)

        Originally Posted by stma View Post

        As a warning WP 3.0 is coming and there are new security features already dropping into the 2.9 branch of wordpress such as wp-once which acts sort of like a session for interacting with the database, installing plugins, etc... it's going to cause havoc with whatever you come up with now.
        So ... does this imply that all of the WP cloning scripts and services will soon be non-functional?

        Personally, I don't like how the Wordpress developers do stuff. They don't "deprecate" features. They just drop them, causing everything previous to break until their creators get around to fixing them.

        This is "open source" -- people do things in their spare time when they get around to it, not just because the WP folks implement stuff that breaks them.

        Since the last "breaking point", when all of the themes and plugins were wiped out (around V2.7 or so) there are nearly 10,000 plugins -- a large number of which don't work with the V2.8+ widget architecture. (They're not "broken", rather they just don't work right, and they're very difficult to fix without being rewritten.)

        And lots of themes don't work with lots of stuff b/c their developers have never bothered to update them. For instance, I've found several themes that don't work with any of the SEO plugins.

        So I imagine that when V3.0 is released, all of the themes and plugins on Wordpress.org will be wiped out and we'll all be relegated to waiting to upgrade until most of our favorite plugins and themes have been fixed.

        I'll stick with V2.9 for a while, thanks.

        (Maybe the WP guys will be kind enough to branch off and leave the stuff that's V2.9 compatible this time, instead of just flushing everthing out. We can always hope!)
        {{ DiscussionBoard.errors[1985927].message }}
  • Profile picture of the author rayallen
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[1985937].message }}
    • Profile picture of the author SageSound
      Originally Posted by rayallen View Post

      Fantastico takes about 30 seconds and is a "one-click" solution, more or less.
      I said that:

      Originally Posted by SageSound View Post

      Fantastico takes about 30 seconds and is a "one-click" solution, more or less.
      You must be simply trying to bump your post count....
      {{ DiscussionBoard.errors[1985952].message }}
  • Profile picture of the author stma
    I've been using a similar system to what I outlined up there - it broke with 2.9 some version. Seems to be installing plugins and themes from remote files -- if you include those themes and plugins in your skel directory you can probably bypass that.
    {{ DiscussionBoard.errors[1985971].message }}
    • Profile picture of the author SageSound
      Originally Posted by stma View Post

      I've been using a similar system to what I outlined up there - it broke with 2.9 some version. Seems to be installing plugins and themes from remote files -- if you include those themes and plugins in your skel directory you can probably bypass that.
      I could just set up a site, then copy the whole thing into the skel folder, right? Since WP now allows upgrading from within the Admin area, it's way easier. I wouldn't have to keep updating those files in the skel area.
      {{ DiscussionBoard.errors[1986132].message }}
      • Profile picture of the author ozduc
        You may want to talk to Greg Jacobs at wpmage dot com or send him a PM, he's on the forum, The way the mage system works is it is a skin on c-panel which automatically sets up the wp blogs. I'm not sure how it does it, as I am not that techy, but I'm sure he would be able to tell you.
        {{ DiscussionBoard.errors[1986312].message }}
        • Profile picture of the author gman2319
          The only way I see is, taking a dump of the database, making certain changes pertaining to the domain, db name and importing it to your new database(after you drop the previous tables). But doing this does have a couple of glitches, like your links going 404 coz of permalinks not kicking in.

          And there is potential for things to mess up if you include plugins in the mix.

          The thing is, it is worth your while to spend time researching this, provided you are doing things on such a large scale.

          @stma
          WP 3.0 ...wp install working with session variables variables?!?!!?!?
          That sounds so damn scary! I dont think I will migrate to WP 3.0 simply because my current set up, works pretty fast for me. If fantastico migrates to WP 3.0 and it causes me too much grief, I will have to come up with a crude script that simulates fantastico.
          Signature

          My Signature..MY SIGNATURE!

          {{ DiscussionBoard.errors[1986543].message }}
  • Profile picture of the author real2deal
    Don't let the user confused, its better to provide video tutorials on how to install wordpress than installed it instantly. If i'm newbie in wordpress I like to learn on how to install it compare to what you like to do.

    This is my opinion only
    {{ DiscussionBoard.errors[1986566].message }}
    • Profile picture of the author SageSound
      Originally Posted by real2deal View Post

      Don't let the user confused, its better to provide video tutorials on how to install wordpress than installed it instantly. If i'm newbie in wordpress I like to learn on how to install it compare to what you like to do.

      This is my opinion only
      The REQUIREMENT I'm trying to meet is to have Wordpress installed as part of the account creation process. It's MY server, and it's what *I* want!
      {{ DiscussionBoard.errors[1986641].message }}
  • Profile picture of the author brandon_kent
    Hello,

    WordPress installation process is already simple and fast as it can get, but only after you have uploaded all the files and produced a database, which can take a while and in fact confirm to be a challenge for some users.
    If your hosting apply CPanel, possibility is you will also have Fantastico installed and you may conder yourself lucky. This mixture permits you to install a new WordPress blog in a matter of seconds.
    {{ DiscussionBoard.errors[2010427].message }}
  • Profile picture of the author SageSound
    I can only assume that the reason people are posting replies that I've said repeatedly are NOT what I'm asking for is because they're trying to boost their post count.
    {{ DiscussionBoard.errors[2011503].message }}
    • Profile picture of the author Istvan Horvath
      Originally Posted by SageSound View Post

      I can only assume that the reason people are posting replies that I've said repeatedly are NOT what I'm asking for is because they're trying to boost their post count.
      Nope, wrong assumption...
      The truth is: 95.3%* of the members NEVER read carefully the OP, just skim it. And even less read the whole thread, the existing answers before they reply.

      ____________________
      *educated guesstimate
      Signature

      {{ DiscussionBoard.errors[2011841].message }}
      • Profile picture of the author SageSound
        Originally Posted by Istvan Horvath View Post

        Nope, wrong assumption...
        The truth is: 95.3%* of the members NEVER read carefully the OP, just skim it. And even less read the whole thread, the existing answers before they reply.

        ____________________
        *educated guesstimate
        Well, I'd generally agree, except I don't think it's a coincidence that they have under 10 posts at the time they post their reply.
        {{ DiscussionBoard.errors[2011905].message }}
  • Profile picture of the author stma
    Sage -

    Drop me a pm with a little more details. I've got a semi functional system I use for my own use. Maybe if you give me a few more details I can set it up to work for you.
    {{ DiscussionBoard.errors[2011571].message }}
  • Profile picture of the author kdevarney
    I have Hostgator and use Fantastico I saved all the themes and plugins I use in a folder
    on my computer. All i do is send over the themes and plugin using ftp and reconfigure my plugins. takes no more than 15 min to do this.
    {{ DiscussionBoard.errors[2011793].message }}
  • Profile picture of the author SageSound
    Another person trying to build up his post count.

    <sigh>

    If you zip up the themes and plugins, then load them into the skel folder, they'll get copied over when the account is created. Then all you have to do is go into the File Manager and copy them to the wp-content folder and expand them. Takes about 15 SECONDS.

    Again, this is NOT what I'm asking for. I want the WP install to be created WITH THE ACCOUNT. So when you first login, it's ALREADY THERE.

    Anybody else looking to boost their post counts?
    {{ DiscussionBoard.errors[2011824].message }}
  • Profile picture of the author GeorgR.
    Check WPManagerDX...it might be what you want.

    Creates domains and pre-configured blogs via remote connection to cpanel.
    Signature
    *** Affiliate Site Quick --> The Fastest & Easiest Way to Make Affiliate Sites!<--
    -> VISIT www.1UP-SEO.com *** <- Internet Marketing, SEO Tips, Reviews & More!! ***
    *** HIGH QUALITY CONTENT CREATION +++ Manual Article Spinning (Thread Here) ***
    Content Creation, Blogging, Articles, Converting Sales Copy, Reviews, Ebooks, Rewrites
    {{ DiscussionBoard.errors[2011827].message }}
  • Profile picture of the author Johnny Slater
    I haven't found a free method for this yet but there is a commercial product I found that has options to automate the install of several different scripts on account creation.

    Install Anything Instantly
    Signature

    {{ DiscussionBoard.errors[2012129].message }}
    • Profile picture of the author SageSound
      Originally Posted by Johnny Slater View Post

      I haven't found a free method for this yet but there is a commercial product I found that has options to automate the install of several different scripts on account creation.

      Install Anything Instantly
      THIS is very interesting. Exactly the sort of thing I was trying to find!

      THANK YOU!

      BTW, why is it that people seem so afraid to talk about "real products" that have honest-to-goodness licensing fees and support and all that? Oh, wait, as John mentioned, this forum is about "making money" not "spending money". Sorry.

      -David
      {{ DiscussionBoard.errors[2014154].message }}
      • Profile picture of the author Dan Thompson
        You can achieve what you want to do by using the cPanel/WHM script hooks, there's a hook you can use that runs after the account creation. So all you'd need to do is create a shell script to create and populate the DB, and copy the Wordpress files over from one location on the server to the users /home/user/public_html directory.

        You might find post 4 here useful:

        How to automate SQL database creation upon new user creation - cPanel Forums

        If you are struggling, I'd recommend hiring a Dev to set it up for you. It shouldn't be a costly job.
        Signature

        I'm a director of D9 Hosting
        The only host in the world to offer a 1 Click DLGuard installation feature from within the cPanel.
        Join today, and receive a 10% discount by using the following coupon code: Warriors

        {{ DiscussionBoard.errors[2014625].message }}
  • Profile picture of the author globalpro
    If I am not mistaken, shouldn't this be in the programming section of the forum.


    Main Internet Marketing Discussion Forum

    Where We Talk About Making Money


    Please post in the right section.

    Thanks,

    John
    {{ DiscussionBoard.errors[2012179].message }}
  • Profile picture of the author kdevarney
    Sorry I am fairly new to this my answer seemed be along lines with everyone else. I was not trying to get my post count up. Dont know if this helps you but wp cloaner was mention to me in the past never used but but you can check it out
    {{ DiscussionBoard.errors[2012277].message }}
    • Profile picture of the author Roger Rowe
      Try WPMU.

      I was not present when the code for Mage was created but they seem to serve the same function (CPMage).

      You will need WPMU and the domain mapping plugin.
      {{ DiscussionBoard.errors[2012375].message }}
      • Profile picture of the author Johnny Slater
        He doesn't want something to install a bunch of blogs at once. He wants to be able to have a WP install configured and set up for his customers when they order web hosting from him. Blog clone scripts can not do this.

        There is a huge difference in automating setting up a bunch of blogs on your own sites and having a WP blog installed and configured at the creation of a web hosting account.


        Originally Posted by Roger Rowe View Post

        Try WPMU.

        I was not present when the code for Mage was created but they seem to serve the same function (CPMage).

        You will need WPMU and the domain mapping plugin.
        Signature

        {{ DiscussionBoard.errors[2012407].message }}
  • Profile picture of the author scnupage
    Try Wildfire DSI it's not cheap but it is veeery powerful.

    Also take a look at Wildfire on a Shoestring which is where the owners have shown you how to do it for free cos they love us - takes a bit of work but as they say unless you have loads of sales each day, it's not worth spending until your earning. They are a great team and definately have the warrior attitude

    Wildfire DSI (This not an affiliate link by the way)

    Steve
    {{ DiscussionBoard.errors[2015054].message }}
  • Profile picture of the author Andrew Mak
    I have make a bot that use cpanel API to create hosting account automatically (invisible), then the bot will install fantastico as well (this action visible).

    this is the visible version

    next i will make a new bot to configure wordpress and i think this combination of robots will be available few weeks later.
    Signature

    {{ DiscussionBoard.errors[6880740].message }}

Trending Topics