Page 1 of 2
Logout after Login (can't enter the zm site)
Posted: Tue May 09, 2006 2:47 pm
by peetr04
Hello!
I installed over debian this software. On first run it was no problem i login with admin user admin pass to zm. I setup my cameras and i was happy to see it works fine. Later (1 hour) i want to login to zm but when is put the default password admin for admin user the screen changes to Logging In but after appear again the login screen. If i put other password than the correct admin. Doesnt happening. I think the password and username is ok and let in but after find something intresting and drop me out.
???
Somebody has any idea?
Thanks:
Peter
Posted: Tue May 09, 2006 3:37 pm
by zoneminder
Have you tried closing your browser and then restarting it and trying again?
Posted: Tue May 09, 2006 6:53 pm
by peetr04
zoneminder wrote:Have you tried closing your browser and then restarting it and trying again?
Hello! Yes of course! And I tryd from different machine from different location. But same. And now its all ok. I dont now why now i can login and use.
Thanks.
Posted: Wed May 10, 2006 5:50 am
by cordel
Perhaps you changed one of the auth options and didn't restart zm so that all the processes shared the same settings.
Regards,
Corey
Posted: Thu May 11, 2006 5:14 pm
by DiegoLima
Hello,
I am experiencing the same thing (I get the login screen, try to login as admin/admin, get the "signing in" message and then get returned to the login screen). I have already restarted my computer but I still have this error.
Could it be some php configuration? I'm using Ubuntu's default php5 configuration (can be checked
here if anyone wants to) and also apache's default config.
Thanks!
Posted: Fri May 12, 2006 12:47 am
by cordel
What errors do you have in your apache error_log?
Regards,
Corey
Posted: Fri May 12, 2006 2:04 am
by DiegoLima
Code: Select all
[Thu May 11 02:52:53 2006] [error] [client 201.31.242.124] File does not exist: /var/www/robots.txt
[Thu May 11 13:57:35 2006] [error] [client 201.31.242.124] File does not exist: /var/www/zm/index.php&username=admin&password=admin
[Thu May 11 14:08:50 2006] [notice] caught SIGTERM, shutting down
[Thu May 11 14:10:29 2006] [warn] RSA server certificate CommonName (CN) `sg.homelinux.com' does NOT match server name!?
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20051025/mssql.so' - /usr/lib/php5/20051025/mssql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu May 11 14:10:32 2006] [warn] RSA server certificate CommonName (CN) `sg.homelinux.com' does NOT match server name!?
[Thu May 11 14:10:32 2006] [notice] Apache/2.0.55 (Ubuntu) PHP/5.1.2-1ubuntu2 mod_ssl/2.0.55 OpenSSL/0.9.8a configured -- resuming normal operations
[Thu May 11 14:11:22 2006] [error] [client 201.31.242.124] File does not exist: /var/www/robots.txt
This is followed by a lot of /var/www/robots.txt errors, although I just tried to login and no new error messages get logged. The MSSQL error should be concerned another configuration and not zm (as far as I know).
Btw, you can try to login and see exactly what happens
here. Thanks!
Posted: Fri May 12, 2006 8:55 am
by cordel
DiegoLima wrote:Code: Select all
[Thu May 11 13:57:35 2006] [error] [client 201.31.242.124] File does not exist: /var/www/zm/index.php&username=admin&password=admin
This would be a concern. It looks to me that you have set the whole path from the root of the system insted of from the root of the web is one thought that comes to mind.
Check and make sure index.php link exists or try to use zm.php (were the link should point to) in place (http://<your_ip>/zm/zm.php).
DiegoLima wrote:
Btw, you can try to login and see exactly what happens
here. Thanks!
You must have something not set correctly as none of your links are functioning but then again I'm behind a ISA firewall so that could be just me.
Regards,
Corey
Posted: Fri May 12, 2006 3:33 pm
by DiegoLima
Hello again,
That file does exist. The error is because I mistyped the url once (if you notice, it should be "index.php
?&username=admin&password=admin") so I got that particular error on the error log.
By typing
http://127.0.0.1/zm/zm.php (or the address I posted here) I get the same login screen. The files are located on my "/home/MyUser/public_html/zm/" and my "/var/www" is just a symbolic link to "/home/MyUser/public_html". The owner of all files and subdirectories are www-data and have read access to everything.
The url for my page is:
http://sg.homelinux.com:81/zm/
If your firewall is blocking http connection to non-standard ports that could be it. Alternatively, you can try to see my php configuration using
this link. It's a web proxy that should work.
Anyway... Any ideas as to what could be happening? Both index.php and zm.php exist and are readable by all users.
Edit: Is there any way I can tell zm not to authenticate the user? I don't really need authentication on this machine, and for now it would be more important to be able to test zm.
Posted: Mon May 15, 2006 5:38 am
by DiegoLima
Just to add some info:
MySQL tables are in the right places, and I tried turning on global variables, but still no results

Posted: Mon May 15, 2006 8:44 pm
by zoneminder
DiegoLima wrote:Code: Select all
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20051025/mssql.so' - /usr/lib/php5/20051025/mssql.so: cannot open shared object file: No such file or directory in Unknown on line 0
This looks like the most obvious issue in the log. It implies that you don't have a valid mysql/php runtime library. Unfortunately I can't say for sure how to fix it but check you have php built with mysql support and you have the php-mysql libraries installed.
Posted: Tue May 16, 2006 12:57 pm
by DiegoLima
zoneminder wrote:
This looks like the most obvious issue in the log. It implies that you don't have a valid mysql/php runtime library. Unfortunately I can't say for sure how to fix it but check you have php built with mysql support and you have the php-mysql libraries installed.
That issue has been already resolved, but it didn't have anything to do with the problem. If you look carefully, that was a missing
MSSQL library that I had manually included in my config to work with remote mssql databases. The error happened because that file simply did not exist in my computer (and probably never will, since I can connect with mssql using sybase.so

) even after I modifed the configuration files.
Posted: Wed May 17, 2006 9:56 pm
by zoneminder
So, to summarise. You are not getting any errors in your logs but just are not able to log in?
Do you know what version of mysql you have?
Posted: Thu May 18, 2006 3:03 am
by DiegoLima
zoneminder wrote:So, to summarise. You are not getting any errors in your logs but just are not able to log in?
Do you know what version of mysql you have?
Basically, yes, no errors logged whatsoever... My MySQL version is 5.0.21 (5.0.21-Debian_3-log) and I've checked the databases and there is a ZM database along with its tables. So I don't think it is the mysql, is it?
Posted: Fri May 19, 2006 3:01 am
by Hogface
Check to see if you have free drive space on your data volume...with a df command.
________
Kawasaki MT1