Web Hosting Talk







View Full Version : auto install wordpress/zencart using cPanel -> Fantastico after account is created


rajuru
02-27-2010, 09:39 PM
Hello,
I am planning to auto setup Wordpress/Zencart to customers account as soon as their hosting account is created. I want to install it using fantastico or directly (whichever better).

I will be using WHMCS for management. so i now have two options:
1. write a whmcs hook script to execute after account is created
2. write a post account creation hook script for cpanel account creation api

Note: even I use fantastico to install, I will need to replace certain files and database tables to suite our need.

however, what next? how should I proceed? I mean, what is the best way of:


1. copying files to customers account? initially I thought skeleton will work but may be no because we have multiple files groups based on hosting package. FTP or shell script?
2. how to replace the database tables? do you think mysql db_name < dump_file.sql. however, I don't know how I will know database name if the script is installed by fantastico. but yes, being first installation it may be like username_wrp1 but reliable?
3. how to execute a installation file? GET/POST to a installation script (http://newlyregistereddomain.com/install.php) may not be reliable because sometimes domains can't be browsed so quickly.


I am just looking for generic ways of implementation or any solution available in market.

any help is appreciated.

Regards

rajuru
03-08-2010, 03:57 PM
no idea? :(

brightice
03-22-2011, 02:40 PM
I'm curious too. I'm looking to do something similar with Joomla.

Let me know!

brightice
03-22-2011, 02:43 PM
Also.. can you kick off a script like this from a shopping cart? Do any shopping carts have the capability to specify a script to run upon purchase.. and pass data to a script as well?

Thanks.

Kevin K
03-22-2011, 02:47 PM
Here is a solution I just posted in another thread:

If you have Softaculous Auto-Installer on the server then you can use the WHCS plugin to have certain plans installed a designated script.

You can find more information here:

http://www.softaculous.com/docs/WHMC...Install_Module (http://www.softaculous.com/docs/WHMCS_Auto_Install_Module)

Mekhu
03-22-2011, 03:18 PM
Here is a solution I just posted in another thread:

Nice post Kevin! Thank you so much for that.