Regarding Main config and server config

Discussion in 'Installation/Configuration' started by szkhost, Aug 16, 2022.

  1. szkhost

    szkhost New Member

    Greetings,

    I am currently working on an unattended installer for ispconfig.
    I am updating the settings of System -> "Server Config" and System -> Main config , by directly modifying the tables/columns in the database:
    sys_ini.config and server.config .
    The question is, after altering these fields, do I need to run a certain command for the panel to load the new settings or modifying the fields is enough and they will be applied to new accounts?

    Thank you!
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    In some cases a resync would be needed for related sites/email accounts/crons etc, through Tools > Resync. But for changes in the main config I don't see any setting where that might be needed.

    Which server config values are you changing?
     
  3. szkhost

    szkhost New Member

    Hello,

    I am changing many settings. I do not have the defaults at hand to check.
    But the clients/websites are added after the changes in the server config. So I presume the settings are loaded for the new accounts.

    Is there a way to resync via commandline ?

    Thank you!
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Clients/websites are not added through the server config but through the client and site functions, I suppose?
     
  5. szkhost

    szkhost New Member

    I add the clients and websites via api, after importing the settings database.
    The question was if these settings get applied to the server just by importing via sql to the mentioned tables.
    If not, it would be great if i could do a resync via command-line.
    But it seems to work even without this
     
  6. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I copy and reuse resync code from older version of ISPConfig in achieving something like that (dns resync for auto dynamic dns update) but I can remember which version.
     

Share This Page