View Full Version : Admin login problem
ltavenne
04-08-2005, 14:47
The solution was in
http://sourceforge.net/forum/forum.php?thread_id=937050&forum_id=74299
and it was
in db.inc.php
remove of // in front of $DB_TYPE ="MYSQL"
stupid thing - three weeks lost
but it's my job too
thanks for all
i can't login with user admin and empty password
i use zabbix 1.0, apache 1.3.27, php 4.3.5, mysql 3.23.56
os is solaris 9
importation of schema.sql and data.sql seems ok
trapperd and suckerd work
please help me
ltavenne
04-08-2005, 15:12
i can connect to zabbix database with sqladmin
i can see the default users
the only thing i can't do is to connect to zabbix with my browser
i do http://@ip
then i receive the login page ; i notice i have the text "error: login name or password incorrect" before i write something
Is the information in the include files (web frontend) correct?
ltavenne
04-08-2005, 16:21
in fact, i follow the documentation
\\ $DB_TYPE ="MYSQL";
$DB_SERVER ="localhost";
$DB_DATABASE ="zabbix";
$DB_USER ="";
$DB_PASSWORD ="";
i tried with DB_USER = Admin but not solve
then
DB_USER = zabbix and DB_PASSWORD = zabbix but not solve
when i modify this parameters, what process must i restart
You don;t have to restart any process after modifying the php files.
Just refresh your web browser properly (CTRL+Refresh if needed).
But I don't think that thats your probelm.
I had this same problem with Zabbix 1.0 too but the problem was with my PHP configuration.'
GO have a look at this thread (http://www.zabbix.com/forum/showthread.php?t=989&highlight=admin)
<edit>Which points to this thread (http://www.zabbix.com/forum/showthread.php?t=478)</edit>
I'm pretty sure DB_user and DB_password need to be set in the inc.db.php file (or whatever it is) for this to work AT ALL
this needs to be set to the mysql user that will be using the zabbix database (or the mysql "root" account if that's the way you want to do it, although it should really be a different user)
the Admin/nopass is just to log the front end in and is stored in the database but if the frontend can not connect to the database at all to verify this it will never work.
The incorrect user/password is probably a php error from it trying to make a db connection and not from you entering the wrong admin user in.
hmmm... I probably rambled on a bit there, I hope it makes sense. I'm about to go home for the day. In a nutshell: the database user and the frontend admin are two different things entirely.
James Wells
05-08-2005, 01:56
Greetings,
i can connect to zabbix database with sqladmin
i can see the default users
the only thing i can't do is to connect to zabbix with my browser
i do http://@ip
then i receive the login page ; i notice i have the text "error: login name or password incorrect" before i write something
This generally indicates two possible issues, the first being that the Zabbix frontend is unable to log into the database and the other issue is a cookie corruption in your web browser.
For the first issue, simply update db.inc.php with the correct DB, user, and password.
Foir the second issue, simply flush your browser's cookies, completely shut down the browser and restart it.
ltavenne
05-08-2005, 11:34
i tried many things about your answers (thanks a lot) but i still have the same problem
i activate log into mysql and i can see that when i use the browser to connect to zabbix, there is no access to database for checking user (log is empty)
when i activate sucker or trapper, i see activity into log
i wonder if i have à good installation of apache or php
ltavenne
05-08-2005, 16:13
The solution was in
http://sourceforge.net/forum/forum....&forum_id=74299
and it was
in db.inc.php
remove of // in front of $DB_TYPE ="MYSQL"
stupid thing - three weeks lost
but it's my job too
thanks for all
excuse,me but your link doesn't work could you modify this.
thanks.
Same problem, unable to login with Admin user with empty pass.
Solution:
I forget to fill the zabbix database with data so there was no Admin user in user table.
So I did the 'cat data.sql | mysql -u root -p zabbix' and now I can log in.
OS:Debian.
DB:MySQL
data.sql in [zabbix-source-dir]/create/data