Ad Widget

Collapse

Access denied for user 'apache'@'localhost' to database 'zabbix'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cptnzod
    Member
    • Jan 2007
    • 56

    #1

    Access denied for user 'apache'@'localhost' to database 'zabbix'

    I have 1.1.4 running on one RedHat Enterprise successfully. I am now installing it in production. I installed the server and the agentd fine. I am pointing my browser to http://hostname/zabbix and I get:
    Access denied for user 'apache'@'localhost' to database 'zabbix'
    I have user root with the right pass set up in the conf files under /etc/zabbix So where else should I check? Is it using apache because it cannot login as root or is it set somewhere?
  • dantheman
    Senior Member
    • May 2006
    • 209

    #2
    You'll need to go to your folder for the frontend, go into the includes folder, and edit teh db.inc.php file to tell PHP the proper username/password, etc to connect to the Mysql database.

    Comment

    • cptnzod
      Member
      • Jan 2007
      • 56

      #3
      That did it. Even though the user root was there the password was not set. After setting the password it logged in correctly. It looks like if it can't login it will use user apache as a fall back.

      Thank you very much

      Comment

      Working...