Ad Widget

Collapse

New Package Install - Error connecting to database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • niirii
    Junior Member
    • Jun 2015
    • 2

    #1

    New Package Install - Error connecting to database

    Hello,

    I am a newbie to Zabbix. I searched the forum for the error below but did not find the help I needed.

    I am running CentOS 6, Apache 2.2, PHP 5.6, and MySQL Community 5.6.

    I followed the instructions for "Installation from packages" using Zabbix 2.4 (installed version is 2.4.5).

    I edited the "zabbix_server.conf" for the database information (MySQL) and I started the "zabbix-server" service but when I attempt to go to the web page I get the error :

    Configuration file error
    Error connecting to database: Access denied for user 'zabbix'@'localhost' (using password: YES)

    I can logon to the MySQL server using the same account and password that I have specified in the "zabbix_server.conf" file.

    Any help would be greatly appreciated!
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Account information for the Web frontend is separate from setting in zabbix_server.conf.
    If you use package from Zabbix SIA,
    Configuration file for the Web frontend is /etc/zabbix/web/zabbix.conf.php.

    What are you able to start successfully zabbix_server daemon?
    Please check your settings If you are not able to start if.

    ex. zabbix_server.conf
    Code:
    DBUser=zabbix
    DBPassword=yourpassword
    If you cannot access to Web frontend,
    Do you set account information at the wizard for initial setting when you access to Web frontend first time?

    Comment

    • niirii
      Junior Member
      • Jun 2015
      • 2

      #3
      That worked!

      Originally posted by Atsushi
      Account information for the Web frontend is separate from setting in zabbix_server.conf.
      If you use package from Zabbix SIA,
      Configuration file for the Web frontend is /etc/zabbix/web/zabbix.conf.php.

      What are you able to start successfully zabbix_server daemon?
      Please check your settings If you are not able to start if.

      ex. zabbix_server.conf
      Code:
      DBUser=zabbix
      DBPassword=yourpassword
      If you cannot access to Web frontend,
      Do you set account information at the wizard for initial setting when you access to Web frontend first time?
      Atsushi that worked. I did have to update the web configuration file as you pointed out. I don't know why they leave that out of the documentation for package installs. Obviously that is a *required* step to get it to work!

      Comment

      Working...