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
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
