View Single Post
Old 11th April 2009, 21:45
bigger_travis bigger_travis is offline
Junior Member
Join Date: Oct 2005
Location: us
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts

Hello, i was wondering if you can help me with something.

im also using version2 with remote framework.

my goal: i want to install a script automatically in the new website's directory by uncompressing the files.

for example, i have a file called myscript.tar.gz

myscript.tar.gz contains files:

in config.lib.php i put this my code after this line:
if(!is_dir($web_path."/"."user")) mkdir($web_path."/"."user", $directory_mode);

my code is:
exec("tar xvfz /var/www/web1/ispconfig/scripts/myscript.tar.gz -C ".$web_path."/")

so when the new site is created, i can see my script files in:

X = new $doc_id

so i was wondering if im just re-inventing the wheel here and perhaps there's already a feature in ispconfig that will allow automatic installation of scripts.

for example, i have some users who want to start their new blog. so i would like for a way to install wordpress automatically when a new site is created using wordpres.tar.gz and then all i have to do is fopen() the config file and edit to the new sites configs (eg: dbuser, dbpassword, etc..)

thanks for your time.
Free Wallpapers - Wallpaper Website Server. Trying to get my server
Reply With Quote