Re: [Exim4U] Debian upgrade - failed web login
Were you having trouble logging in to the web interface?
yes Tamas i was having login=failed when i put in the user name and password, i check the login.php file and set all the "header ('Location: index.php?login=failed');" to different message to see exacly which section the fail was happening. you should check on your address bar if it indicates fail when you try to login. it has been some months since fix this problem i can remember exacly what i did but i think that was the only function that i modify. and make sure you have the php5-mcrypt module install. Quoting users-request(a)exim4u.org:
Send users mailing list submissions to users(a)exim4u.org
To subscribe or unsubscribe via the World Wide Web, visit https://exim4u.org/mailman/listinfo/users or, via email, send a message with subject or body 'help' to users-request(a)exim4u.org
You can reach the person managing the list at users-owner(a)exim4u.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of users digest..."
Today's Topics:
1. Re: Debian upgrade - failed web login (Kebba Foon) 2. Re: Debian upgrade - failed web login (Tamas) 3. Re: Debian upgrade - failed web login (Tamas)
----------------------------------------------------------------------
Message: 1 Date: Mon, 22 Aug 2011 16:33:13 +0000 From: Kebba Foon <kebba.foon(a)qcell.gm> Subject: Re: [Exim4U] Debian upgrade - failed web login To: users(a)exim4u.org Message-ID: <1314030793.2750.34.camel(a)kfoon-PC.qanet.gm> Content-Type: text/plain; charset="UTF-8"
On Mon, 2011-08-22 at 12:00 -0400, users-request(a)exim4u.org wrote:
Re: Debian upgrade - failed web login
I think its the crypt_password function under /exim4u/config/functions.php
i have the same issue with i upgraded my Debian to squeeze, the php crypt function is not functioning well in the new php on squeez. i dont remeber what the old values where but compare your crypt_password function to my and modify accordly.
if ($salt != '') { if ($cryptscheme == 'des') { $salt = substr($salt, 0, 2); } else if ($cryptscheme == 'md5') { $salt = substr($salt, 0, 12); } else { $salt = ''; } $cryptedpass = crypt($clear, $salt); } else { $cryptedpass = crypt($clear); } } return $cryptedpass;
------------------------------
Message: 2 Date: Mon, 22 Aug 2011 09:49:42 -0700 (PDT) From: Tamas <exim4u(a)tacs.ca> Subject: Re: [Exim4U] Debian upgrade - failed web login To: users(a)exim4u.org Message-ID: <1314031782712-3275644.post(a)n3.nabble.com> Content-Type: text/plain; charset=us-ascii
Hello Odhiambo,
Thank you for your suggestion.
I turned on full error logging in php and this is what I get in the apache error log:
[Mon Aug 22 12:37:28 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::connect() should not be called statically in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 12, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:28 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::parseDSN() should not be called statically in /usr/share/php/DB.php on line 520, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:28 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::isError() should not be called statically in /usr/share/php/DB.php on line 557, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:28 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::isError() should not be called statically in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 13, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:28 2011] [error] [client 192.168.132.145] PHP Notice: Undefined index: realname in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 106, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:28 2011] [error] [client 192.168.132.145] PHP Notice: Undefined variable: _SESSION in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 108, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:28 2011] [error] [client 192.168.132.145] PHP Notice: Undefined variable: _SESSION in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 111, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:28 2011] [error] [client 192.168.132.145] PHP Notice: Undefined variable: _SESSION in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 112, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:28 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in /usr/share/php/DB/common.php on line 2195, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:28 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/php/DB/common.php on line 1217, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:28 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::isError() should not be called statically in /www/sites/domain.com/htdocs/exim4u/login.php on line 35, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:28 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::isError() should not be called statically in /www/sites/domain.com/htdocs/exim4u/login.php on line 43, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:28 2011] [debug] mod_deflate.c(615): [client 192.168.132.145] Zlib: Compressed 0 to 2 : URL /exim4u/login.php, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::connect() should not be called statically in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 12, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::parseDSN() should not be called statically in /usr/share/php/DB.php on line 520, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::isError() should not be called statically in /usr/share/php/DB.php on line 557, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::isError() should not be called statically in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 13, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Notice: Undefined index: realname in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 106, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Notice: Undefined index: localpart in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 108, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Notice: Undefined variable: _SESSION in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 108, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Notice: Undefined variable: _SESSION in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 111, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Notice: Undefined variable: _SESSION in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 112, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Notice: Undefined index: domain in /www/sites/domain.com/htdocs/exim4u/config/variables.php on line 116, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Notice: Undefined variable: domheaderrow in /www/sites/domain.com/htdocs/exim4u/config/header.php on line 15, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Notice: Undefined variable: domheaderrow in /www/sites/domain.com/htdocs/exim4u/config/header.php on line 15, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Notice: Undefined variable: usrheaderrow in /www/sites/domain.com/htdocs/exim4u/config/header.php on line 17, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Notice: Undefined variable: usrheaderrow in /www/sites/domain.com/htdocs/exim4u/config/header.php on line 17, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in /usr/share/php/DB/common.php on line 2195, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [error] [client 192.168.132.145] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/php/DB/common.php on line 1217, referer: http://domain.com/exim4u/ [Mon Aug 22 12:37:29 2011] [debug] mod_deflate.c(615): [client 192.168.132.145] Zlib: Compressed 2668 to 974 : URL /exim4u/index.php, referer: http://domain.com/exim4u/
I see these as standards notices more so than errors. Could these be causing it?
I also turned on error and query logging in MySQL and I get this:
110822 12:41:52 3318 Connect exim4u(a)localhost on 3318 Init DB exim4u 3318 Init DB exim4u 3318 Query SELECT crypt,localpart,user_id,domain,domains.domain_id,users.admin,users.type,domains.enabled AS domainenabled FROM users,domains WHERE localpart='postmaster' AND users.domain_id = domains.domain_id AND domains.domain='domain.com' 3318 Quit 3319 Connect exim4u(a)localhost on 3319 Init DB exim4u 3319 Init DB exim4u 3319 Query SELECT domain FROM domains WHERE type='local' AND domain!='admin' ORDER BY domain 3319 Quit
Which looks good to me.
Is it possible to add new domains and aliases from the mysql command prompt without messing everything else up?
Tamas
-- View this message in context: http://users.exim4u.org/Debian-upgrade-failed-web-login-tp3275052p3275644.ht... Sent from the Exim4U General Discussion mailing list archive at Nabble.com.
------------------------------
Message: 3 Date: Mon, 22 Aug 2011 10:29:22 -0700 (PDT) From: Tamas <exim4u(a)tacs.ca> Subject: Re: [Exim4U] Debian upgrade - failed web login To: users(a)exim4u.org Message-ID: <1314034162810-3275751.post(a)n3.nabble.com> Content-Type: text/plain; charset=us-ascii
Hi Kebba,
Thanks for your response!
I found your inquiry a while back and changed the crypt_password function. Unfortunately, that seemed to do nothing. I'm still unable to log in. I copied and pasted what you just sent and it's still the same thing.
Were you having trouble logging in to the web interface?
T
-- View this message in context: http://users.exim4u.org/Debian-upgrade-failed-web-login-tp3275052p3275751.ht... Sent from the Exim4U General Discussion mailing list archive at Nabble.com.
------------------------------
_______________________________________________ users mailing list users(a)exim4u.org https://exim4u.org/mailman/listinfo/users
End of users Digest, Vol 17, Issue 2 ************************************
participants (1)
-
kebba.foon@qcell.gm