UseBB Community

UseBB support, discussion and development

Can't login to ACP

Moderators: Gaia.

Post Reply

Page: 1

Author Post
Member
Registered: Feb 2006
Posts: 14
Somehow after my forum was moved to a different server, I can not login to any ACP anymore. But I can login to forum no problem.

When I click "ACP" link on the bottom, I get the usual screen with "password confirmation", and after I type in my password, it does not go any further. There is no error message like "password is wrong", nothing. Usebb just goes back to "admin login" page.

Can someone give me a hint, what should I check ?

UseBB 1.0.8/OpenBSD/Apche2/MySQL5/PHP5.
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
Have you tried logging in without the "remember me" cookie? My bet is that either the cookie settings are wrong or the server has difficulties saving session data.
Member
Registered: Feb 2006
Posts: 14
Dietrich wrote
Have you tried logging in without the "remember me" cookie? My bet is that either the cookie settings are wrong or the server has difficulties saving session data.


Hm... I can not login at all if I un-check "remember me" box. And I know for sure, that I was able to login from exactly the same machine/browser before.
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
Most likely the server is not able to save PHP's session data. It would be best to contact your host about this.
Member
Registered: Feb 2006
Posts: 14
Dietrich wrote
Most likely the server is not able to save PHP's session data. It would be best to contact your host about this.


it is my own server :)

session files:
-rw------- 1 www www 216 Mar 4 22:27 sess_f7hm30gpl0g5r2sqit6st3lod1
-rw------- 1 www www 236 Mar 4 09:42 sess_f917ba88d708a0ec971860b9608ee9d5
-rw------- 1 www www 236 Mar 4 09:41 sess_f9355f2dc30963a9a14ee750d626be99
-rw------- 1 www www 236 Mar 4 10:20 sess_fac6a603d7871062209cbfb0a92b6d43
-rw------- 1 www www 216 Mar 4 13:16 sess_fnqsh92ck5afc0pshllvtg0205
-rw------- 1 www www 0 Mar 4 10:19 sess_fpmsj67m4db23g9jrrkafftp33
-rw------- 1 www www 216 Mar 4 23:48 sess_fv4auhs9qeo5u8u1pal8q3abl4
-rw------- 1 www www 216 Mar 4 11:13 sess_gai08vnulumjcc6cb9rhvcq1d1

temp folder access rights:
drwxr-xr-x 2 www www 7680 Mar 5 05:21 tmp

Everything looks OK to me... Except for some session files with length of 0 bytes.

Is there debug logfile feature in UseBB ?
« Last edit by boba on Thu Mar 05, 2009 2:31 pm. »
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
What are the cookie settings set to in the ACP?
Member
Registered: Feb 2006
Posts: 14
Dietrich wrote
What are the cookie settings set to in the ACP?


from config.php:
$conf['cookie_domain'] = 'boba.name';
$conf['cookie_httponly'] = 1;
$conf['cookie_path'] = '';
$conf['cookie_secure'] = 0;

$conf['session_max_lifetime'] = 300;
$conf['session_name'] = 'usebb';
$conf['session_save_path'] = '/tmp';
Member
Registered: Feb 2006
Posts: 14
boba wrote
Dietrich wrote
What are the cookie settings set to in the ACP?


from config.php:
$conf['cookie_domain'] = 'boba.name';
$conf['cookie_httponly'] = 1;
$conf['cookie_path'] = '';
$conf['cookie_secure'] = 0;

$conf['session_max_lifetime'] = 300;
$conf['session_name'] = 'usebb';
$conf['session_save_path'] = '/tmp';


-bash-3.2$ sysctl -a|grep files
kern.maxfiles=16384
kern.nfiles=170

bash-3.2# ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) 524288
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) 122929
max memory size (kbytes, -m) 368260
open files (-n) 1024
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 1310
virtual memory (kbytes, -v) 532480

bash-3.2# fstat |grep www|wc -l
154
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
The strangest thing I discovered is that when visiting your forum, no cookie for PHP's session is set at all.
$ curl -I http://boba.name/
HTTP/1.1 200 OK
Date: Thu, 05 Mar 2009 20:56:31 GMT
Server: Apache
X-Powered-By: PHP/5.2.6
Expires: 0
Cache-Control: private, pre-check=0, post-check=0, max-age=0
Pragma: no-cache
Content-Type: text/html; charset=windows-1251


There clearly should be a Set-Cookie header, but it isn't there. Since this is handled by PHP itself I can't figure out a reason at this time. This might be a PHP bug. I will look at into more closely soon.
Member
Registered: Feb 2006
Posts: 14
Dietrich wrote
The strangest thing I discovered is that when visiting your forum, no cookie for PHP's session is set at all.
$ curl -I http://boba.name/
HTTP/1.1 200 OK
Date: Thu, 05 Mar 2009 20:56:31 GMT
Server: Apache
X-Powered-By: PHP/5.2.6
Expires: 0
Cache-Control: private, pre-check=0, post-check=0, max-age=0
Pragma: no-cache
Content-Type: text/html; charset=windows-1251


There clearly should be a Set-Cookie header, but it isn't there. Since this is handled by PHP itself I can't figure out a reason at this time. This might be a PHP bug. I will look at into more closely soon.


Thank you for the hint !

PHP.INI
; Whether to use cookies.
session.use_cookies = 1
session.use_only_cookies = 1


Solved !
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
Nice, I wasn't aware of the setting at this point. Glad it's solved. :)

Post Reply

Page: 1

UseBB Community is powered by UseBB 1 Forum Software