Current time: 05-20-2024, 09:15 AM Hello There, Guest! (LoginRegister)


Post Reply 
Automatic subdomain creation PLUS more...
Author Message
ceco91 Offline
Moderator
*****
Moderators

Posts: 95
Joined: Jan 2009
Reputation: 0
Post: #4
RE: Automatic subdomain creation PLUS more...
Make a tar.bz2 with you CMS file and put it in /var/www/ispcp/gui/domain_default_page.

You should edit some perl' files.
IN /var/www/ispcp/engine/ispcp-dmn-mngr you should add in "dmn_add_httpd_file_data()":

Code:
sys_command("$main::cfg{'CMD_CP'} -p $main::cfg{'GUI_ROOT_DIR'}/domain_default_page/<you archive> $www_dir/$dmn_name/htdocs");
#Now the archive is copied in your domain htdocs directory
sys_command("$main::cfg{'
CMD_TAR'} -jzf $www_dir/$dmn_name/htdocs<your archive>");
#You have your cms extracted
sys_command('$main::cfg{'CMD_CHOWN'} $sys_user:$sys_user $www_dir/$dmn_name/htdocs/* -R');
sys_command('$main::cfg{'CMD_CHMOD'} 0644 $www_dir/$dmn_name/htdocs/* -R');
sys_command('$main::cfg{'CMD_CP'} $www_dir/$dmn_name/htdocs/<your archive> -f');

I don't know how to configure the cms but this will deploy your cms, I think.

Sorry for editing. I use too much copy-paste Smile
(This post was last modified: 01-30-2009 07:41 PM by ceco91.)
01-30-2009 06:22 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Automatic subdomain creation PLUS more... - ceco91 - 01-30-2009 06:22 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)