authentication problem

Support and queries relating to all previous versions of ZoneMinder
Locked
angelhod
Posts: 67
Joined: Wed May 04, 2005 1:51 pm
Contact:

authentication problem

Post by angelhod »

slack 10.1
zm-1.21.4
php 5.1.1
mysql 4.1.8a


when i turn authentication on i cant login with zmadmin/zmadmin like i set up during the istalation process...

there is nothing in the logs except :
'zmupdate.pl -c' starting at 06/02/20 23:23:21, pid = 5655
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/lib/perl5/5.8.6/i486-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i486-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl .) at /usr/local/bin/zmupdate.pl line 181.
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 181.
'zmupdate.pl -c' crashed at 06/02/20 23:23:22, exit status 2


but i think that this has nothing common with my login issue....

any ideas why i cant log in?
angelhod
Posts: 67
Joined: Wed May 04, 2005 1:51 pm
Contact:

.

Post by angelhod »

ofcourse my zmadmin/zmadmin works when i wanna log in into mysql...
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The default login for zm is admin/admin
That setting in zm.conf is for the database only.
The error your geting is a missing perl module LWP

Regards,
Corey
angelhod
Posts: 67
Joined: Wed May 04, 2005 1:51 pm
Contact:

.

Post by angelhod »

i forgot to write that i've tried admin/admin too...

and i have stupid question..... i always have problems with
perl modules.... i.e. You wrote that i need LWP module....
logs tells that i need LWP/UserAgent.pm but i cant find
that module on the list.... all i see is :
LWP-UserAgent-iTMS_Client-0.15.tar.gz
LWP-UserAgent-ProxyAny-1.01.tar.gz

and things like this.... cant find LWP-UserAgent

i know that this is a stupid question... ;) is this mode needed
to make login procedure works?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I don't belive it is, but you can always get it via CPAN as documented in the manual.
Once you setup CPAN getting modules is pretty easy.

Corey
angelhod
Posts: 67
Joined: Wed May 04, 2005 1:51 pm
Contact:

.

Post by angelhod »

ye i know that getting modules using CPAN is pretty easy but i got problem with CPAN on this machine... and i have to install perl modules
without cpan... :(

any other ideas what do i need to do to make login system works?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What does you apache error_log say?
You should be able to find the error there.

You can also set php to be zend1 compatable, you may need to do this.

Regards,
Corey
angelhod
Posts: 67
Joined: Wed May 04, 2005 1:51 pm
Contact:

.

Post by angelhod »

that is strange.... but all my logs are clean except that LWP perl error..... all logs look relly good including apache error log

"You can also set php to be zend1 compatable, you may need to do this."

hmm how can i do this?
angelhod
Posts: 67
Joined: Wed May 04, 2005 1:51 pm
Contact:

.

Post by angelhod »

k i found that my php has

zend.ze1_compatibility_mode Off Off

so it is off ;)

now i need to find out how to set it on ;)
angelhod
Posts: 67
Joined: Wed May 04, 2005 1:51 pm
Contact:

.

Post by angelhod »

hmm i've read that there are some problems with zend1 on php 5.1.1

so i've installed php 5.1.2 but still i see

zend.ze1_compatibility_mode Off Off

and login process doesnt work

how can i turn it on?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The php setting are in /etc/php.ini
I'll be setting up php 5 here pretty soon so I can have a look at what might be going on.
It's odd that you have do not have more specific errors that reference you problem though.
angelhod
Posts: 67
Joined: Wed May 04, 2005 1:51 pm
Contact:

.

Post by angelhod »

So i went back to php 4.4.2 but still no luck

this php supports :

Zend Extension 20050606
Zend Memory Manager enabled

This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

so what else can i do? logs are still clear...
angelhod
Posts: 67
Joined: Wed May 04, 2005 1:51 pm
Contact:

.

Post by angelhod »

hmm
just wondering
What is table Users in ZM database for?

because mine Users table is empty... maybe thats why i cant log in...
angelhod
Posts: 67
Joined: Wed May 04, 2005 1:51 pm
Contact:

.

Post by angelhod »

LOOLL
YUPPI
that was the reason.... i dont know why but while creating my zm database it didnt put admin into users table.... i did manualy and now
i am able to log in......

so happy :)
:)

i am really like this project :)
Locked