config.inc.php

Discussion in 'Installation/Configuration' started by Chris_UK, Aug 14, 2021.

  1. Chris_UK

    Chris_UK Active Member HowtoForge Supporter

    There are two configuration file
    interface/lib/config.inc.php
    server/lib/config.inc.php

    I changed the primary servers mysql port, rather than doing an upgrade to reconfigure I opted to change the configuration "file" instead. Took me a little while to work out why cron.log was showing connection errors and so changing the second file.

    With a brief inspection the files have the same size and appear to contain the same content. Actually diff shows they are identical.
    Is there a reason to keep two files in this way. Possibly some usage that I am not yet aware of?
     
    Last edited: Aug 14, 2021
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    the interface-file is use for the interface and the file in the server-dir is used for the server-plugins and cronjobs. on a slave-server, you don't need to change the file from interface.
     
    Chris_UK likes this.
  3. Chris_UK

    Chris_UK Active Member HowtoForge Supporter

    I am just wondering why two files when one could serve both parts of the system, unless they can be separated into different hosts then it makes sense.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig Interface and server part are completely independent from each other and can even reside on different hosts. That's why the interface and server have different config files. And e.g. on a mirror setup, the interface and server config file of the same physical node contain different database details.
     
    Chris_UK likes this.
  5. Chris_UK

    Chris_UK Active Member HowtoForge Supporter

    Okay, if one were to setup in this way, would the secondary's poll the server or the interface? I am not going to do this, just interested to know.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The server part of the second server connects to the local database, the interface part connects to a mirrored copy of the primary database.
     

Share This Page