HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=18)
-   -   Custom standard files and own shellscript execution after creating a new web (http://www.howtoforge.com/forums/showthread.php?t=31131)

Jürgen 9th February 2009 18:03

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!

till 10th February 2009 12:45

About which ISPConfig version do you talk?

Jürgen 10th February 2009 17:16

I am still using ISPConfig 2.2.

falko 10th February 2009 18:52

Quote:

Originally Posted by der Jörchen (Post 168735)
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.

Jürgen 10th February 2009 21:30

Super! Thank you very much!!

bigger_travis 11th April 2009 21:45

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.

falko 12th April 2009 15:39

Quote:

Originally Posted by bigger_travis (Post 181331)
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.

mikelin 20th April 2009 20:47

For ispconfig versione 3.011 ?

Tk

falko 21st April 2009 17:50

No, that feature doesn't exist in ISPConfig 3 either.


All times are GMT +2. The time now is 15:03.

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