Custom standard files and own shellscript execution after creating a new web

Discussion in 'Developers' Forum' started by Jürgen, Feb 9, 2009.

  1. Jürgen

    Jürgen New Member


    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!

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    About which ISPConfig version do you talk?
  3. Jürgen

    Jürgen New Member

    I am still using ISPConfig 2.2.
  4. falko

    falko Super Moderator ISPConfig Developer

    It's the function make_docroot() in /root/ispconfig/scripts/lib/config.lib.php.
  5. Jürgen

    Jürgen New Member

    Super! Thank you very much!!
  6. bigger_travis

    bigger_travis New Member

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

    falko Super Moderator ISPConfig Developer

    There's no such feature in ISPConfig.
  8. mikelin

    mikelin New Member

    For ispconfig versione 3.011 ?

  9. falko

    falko Super Moderator ISPConfig Developer

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

Share This Page