replace [...]webX/web to [...]webX/htdocs ?

Discussion in 'Installation/Configuration' started by allgaeu, Feb 12, 2008.

  1. allgaeu

    allgaeu New Member


    just installed ISPConfig on a box, everything works fine but as i`m goin to migrate some web`s from vhcs to ISPConfig it would be great to have the directories actually look like this:

    instead of

    is there a way to get this beaviour without hacking writeconf.php to replace web by htdocs (or just create a symlink after the web-folder was created...) ?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can not change the directory layout without changing the ispconfig code in many places. If you want to create a symlink automatically, you should have a look at the function make_vhost or make_docroot in the file /root/ispconfig/scripts/lib/config.lib.php
  3. allgaeu

    allgaeu New Member

    creating the symlink now works fine.

    I also found that this file might be the right place to apply some other changes like open_basedir restrictions for php, logifle format and directories, adjusting linebreaks in Vhst_ispconfig.conf, custom logfiles per domain etc.

    Is there a meachnism that re/overwrites manual changes in the apache-configuration file from a cache/working diretory or the database on each creation of a vhost like vhcs does at ISPConfig, too ?
    (btw, this mechanism sucks ...)

    Anyway, thanks a lot for the hint,
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The apache config files are written from this function when a website is changed.

    ISPConfig is open source. Feel free to write a better one ;)
  5. allgaeu

    allgaeu New Member

    ups, this is what i suspected :(

    Sure, not an issue...
    I just tried to avoid too much hacking to be able to update - but that`s obviously done now :(

    Did you ever think about using single files per domain/vhost together with more fine-grained templates where only values affected by ISPConfig are actually changed for future versions ?

    Guess that's not such a big deal but would allow to customize without modifications being overwritten on every change in the web frontend ;)

  6. falko

    falko Super Moderator ISPConfig Developer

    ISPConfig v3 will go in that direction. :)

Share This Page