Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23926

Setup is creating and looking for the configuration file in different directories

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.25, 6.4.10, 7.0.0beta1
    • Frontend (F)

      Path to configuration file is set up in CConfigFile.php. By default is is an absolute path to file. For example /etc/zabbix/web/zabbix.conf.php, but zabbix UI may not be installed there. It can be installed in /usr/share/zabbix/, for example.
      CSetupWizard merges together the current directory and configuration file directory creating a non-existent path to configuration file /usr/share/zabbix/etc/zabbix/web/zabbix.conf.php.
      So a user is somewhat forced to create that directory. It doesn't create automatically. When creating such directory and configuration file is saved there, setup at the end reveals that it was saved in etc/zabbix/web/zabbix.conf.php, which looks like a relative path, but that is not entirely true. File is actually saved here /usr/share/zabbix/etc/zabbix/web/zabbix.conf.php.
      When successfully saving the configuration file and navigating to UI, user is again greeted with same setup, because the real configuration file is still not in the correct place. UI is looking for a file in /etc/zabbix/web/zabbix.conf.php, but setup didn't create the file there.

            zabbix.dev Zabbix Development Team
            iivs Ivo Kurzemnieks
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: