Move configuration files request

Discussion in 'Developers' Forum' started by nveid, Aug 29, 2011.

  1. nveid

    nveid ISPConfig Developer ISPConfig Developer

    Can we move the default location for the configuration files for ispconfig to /etc/ispconfig?

    This would allow non-standard location installs of ispconfig if so needed however keeping configuration, and make it so the system uses one configuration file instead of 2 with the same data located in two different locations on a system. However, this would keep configuration in a more standard place on the system and the code will reference needed information there. Also, this would be an ideal location should an actual debian package be created to support the installation of ispconfig.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats a good idea. I think we should ensure that the location from where the file gets included into the other php scripts does not change so that no demo system or installations where the interface part is installed in a website is broken. There are a lot of custom installs out there and we should take care about that.

    Also the installer should do a seamless upgrade on that change.

    Either we use a symlink from /usr/local/ispconfig/interface/lib/ to /etc/ispconfig/ or we add some code to the /usr/local/ispconfig/interface/lib/ file that tries to include the file from /etc/ispconfig in case that it exists and has secure permissions (user and group ispconfig and not world readable). Same for the server part config file.
    Last edited: Aug 29, 2011

Share This Page