markb1439 Posted May 23, 2011 Share Posted May 23, 2011 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 0 Quote Link to comment Share on other sites More sharing options...
purnima Posted June 1, 2011 Share Posted June 1, 2011 Before I am not clear with this installation. Now I am clear. Thank you for sharing this useful information. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.