Can not log in web interface
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
merced does that topic refer to your 205 problem?
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- lazyleopard
- Posts: 403
- Joined: Tue Mar 02, 2004 6:12 pm
- Location: Gloucestershire, UK
Last night I decided to bite the bullet and allow Gentoo to upgrade mysql from 4.0.25 to 4.1.14. There were a couple of pages to be read carefully (as announced in http://forums.gentoo.org/viewtopic-t-392469.html ), but most of the upgrade went smoothly. However, Gentoo correctly decided that zoneminder needed re-compiling, and the fixes Phil had made vanished. Oops!
I got it working again after a while. This is the patch I've now got applied to zm.php:including evidence of things I tried and then left out.
I needed to clear out my cookie file, obviously. I also found that I had to juggle the authorisation options via SQL, making use ofto allow me to flip between "hashed" and "plain" in the web interface without needing a password, and to reset (and, presumably, re-hash) the password. Once I could log in with that ID I was able to reset the passwords for the other IDs via the web interface, and then they could login too.
I got it working again after a while. This is the patch I've now got applied to zm.php:
Code: Select all
--- web/zm.php.orig 2005-05-17 22:42:13.000000000 +0100
+++ web/zm.php 2005-10-27 07:58:42.000000000 +0100
@@ -20,6 +20,7 @@
error_reporting (E_ALL ^ E_NOTICE);
import_request_variables( "CGP" );
+session_start();
$debug = false;
if ( $debug )
@@ -146,7 +147,7 @@
}
}
-session_start();
+//session_start();
if ( !$_SESSION['format'] )
{
@@ -156,6 +157,7 @@
if ( $cookies )
{
setcookie( "format", $format );
+ //setcookie( "cookies", $cookies );
}
}
I needed to clear out my cookie file, obviously. I also found that I had to juggle the authorisation options via SQL, making use of
Code: Select all
update Config set Value=0 where Name like "ZM_OPT_USE_AUTH";
Code: Select all
update Users set Password = password('xxxxx') where Username = 'admin';
Rick Hewett
FYI,
I'm running Debian/Testing amd64. Recently php4.4 moved from unstable to testing and I
upgraded. I lost the ability to login. I upgraded zm to 1.21.4, but it didn't help. I noticed that the "official fix" was in 1.21.4. Merced's fix (moving session_start) got my login back.
Also I had to include my url hack in zm_funcs.php -- Without it I didn't get images in the monitor window. I just copied zmconfig.txt to the new source directory, so iif zmconfig.pl has been changed to accept a trailing '/' I lissed it.
As well, to get 1.21.4 to build,I had to add the following to the LIBS line in the Makefiles:
-ldts -ldc1394_control -lvorbisfile -logg -lgsm -ltheora -lvorbisenc
Thanks.
Don
I'm running Debian/Testing amd64. Recently php4.4 moved from unstable to testing and I
upgraded. I lost the ability to login. I upgraded zm to 1.21.4, but it didn't help. I noticed that the "official fix" was in 1.21.4. Merced's fix (moving session_start) got my login back.
Also I had to include my url hack in zm_funcs.php -- Without it I didn't get images in the monitor window. I just copied zmconfig.txt to the new source directory, so iif zmconfig.pl has been changed to accept a trailing '/' I lissed it.
As well, to get 1.21.4 to build,I had to add the following to the LIBS line in the Makefiles:
-ldts -ldc1394_control -lvorbisfile -logg -lgsm -ltheora -lvorbisenc
Thanks.
Don
Don Hayward
Mote Marine Laboratory
Mote Marine Laboratory
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Thanks Don for passing this on. I assume you are using Theora streaming somewhere?
Am I correct in understanding that you are still having login problems even after the upgrade? If so then perhaps there is more than one issue as the php 4.4 systems I looked at were all fixed by the 1.21.4 change.
Can you remind me what the url hack was?
Phil
Am I correct in understanding that you are still having login problems even after the upgrade? If so then perhaps there is more than one issue as the php 4.4 systems I looked at were all fixed by the 1.21.4 change.
Can you remind me what the url hack was?
Phil
-
- Posts: 2
- Joined: Wed Feb 23, 2005 5:16 pm
Fixed it for Gentoo
I have two installations of Gentoo, one with the login problem.
So i looked at the use flags and a new emerge of PHP5 solved my problem.
I emerged PHP5 with USE="curl gmp xpm" and that did the trick for me.
But i don't know exactly which of the three flags did the trick...
Hope this would help.
So i looked at the use flags and a new emerge of PHP5 solved my problem.
I emerged PHP5 with USE="curl gmp xpm" and that did the trick for me.
But i don't know exactly which of the three flags did the trick...
Hope this would help.