Jump to content

Automatic CMS Installation


Recommended Posts

Hi,

 

I know there's been a lot of discussion about how to automate installation of WordPress, Joomla, etc., on creation of a hosting account.

 

It's actually quite easy with Installatron and their new automation API. It's very powerful and yet easy to implement.

 

http://installatron.com/automation

 

There are various methods including WHMCS hook integration, and direct cPanel postwwwacct integration.

 

For example, let's say that you want to use the cPanel method to automatically install WordPress on any new hosting account that is created with hosting plan WP1, WP2, WP3 or WP4. Assuming that Installatron is installed on your server (which is an easy process), just add this code to cPanel's postwwwacct file (or create the file if necessary):

 

#!/usr/bin/perl** 
my*%OPTS*=*@ARGV;* 
if*(*$OPTS{'plan'}*eq*"WP1" 
**or*$OPTS{'plan'}*eq*"WP2" 
**or*$OPTS{'plan'}*eq*"WP3" 
**or*$OPTS{'plan'}*eq*"WP4"*)** 
{** 
****my*$randomizedAdminLoginName*=*"admin".int(rand(99999));** 

****sleep*10;** 
****system("/usr/local/installatron/installatron*--install*--application*wordpress*--user*$OPTS{'user'}*--url*http://$OPTS{'domain'}/blog*--login*$randomizedAdminLoginName");** 

}

 

That's it! A randomized admin user name and random password will be created and e-mailed to the user upon installation. It's fast too.

 

I think Installatron is the best installer out there for many reasons, most notably because they're always adding great features like this. There are also lots of ways to customize installations, for example to add various WordPress themes and plugins to the installation.

 

Hope this helps.

 

Mark

WPCDN

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated