Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th February 2009, 17:03
Jürgen Jürgen is offline
Junior Member
 
Join Date: Jan 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via ICQ to Jürgen Send a message via Skype™ to Jürgen
Default Custom standard files and own shellscript execution after creating a new web

Hey,

i like to change the standard files that are located in a new web. I would run an own shell script that moves the required files from a common folder and sets some links.

Is there a global shell script that is executed? (A php script is also possible.)

Thanks for your help!

Cheers!
Reply With Quote
Sponsored Links
  #2  
Old 10th February 2009, 11:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,457
Thanks: 813
Thanked 5,228 Times in 4,098 Posts
Default

About which ISPConfig version do you talk?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
der Jörchen (10th February 2009)
  #3  
Old 10th February 2009, 16:16
Jürgen Jürgen is offline
Junior Member
 
Join Date: Jan 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via ICQ to Jürgen Send a message via Skype™ to Jürgen
Default

I am still using ISPConfig 2.2.
Reply With Quote
  #4  
Old 10th February 2009, 17:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Quote:
Originally Posted by der Jörchen View Post
Is there a global shell script that is executed? (A php script is also possible.)
It's the function make_docroot() in /root/ispconfig/scripts/lib/config.lib.php.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
der Jörchen (10th February 2009)
  #5  
Old 10th February 2009, 20:30
Jürgen Jürgen is offline
Junior Member
 
Join Date: Jan 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via ICQ to Jürgen Send a message via Skype™ to Jürgen
Default

Super! Thank you very much!!
Reply With Quote
  #6  
Old 11th April 2009, 20: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
Default

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:
header.php
index.php
footer.php

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:
/var/www/webX/web/

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
  #7  
Old 12th April 2009, 14:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Quote:
Originally Posted by bigger_travis View Post
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.
There's no such feature in ISPConfig.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 20th April 2009, 19:47
mikelin mikelin is offline
Junior Member
 
Join Date: Apr 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For ispconfig versione 3.011 ?

Tk
Reply With Quote
  #9  
Old 21st April 2009, 16:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
 
Default

No, that feature doesn't exist in ISPConfig 3 either.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.