munk.me.uk forum
May 21, 2012, 05:27:31 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Cannot login, no error  (Read 804 times)
phobic
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 3


View Profile
« on: December 01, 2010, 01:53:51 pm »

Hi There

I had simpleauth running for a couple of years with no problem, after recently moving it to a new server I'm having a small weird problem - when users try to login the login page just reloads and shows no error message, and does not forward them to the relevant page.

I know the database is working, because if I alter any details in config.php I get a database error in the browser when trying to load any pages. The only other sign that there's a problem is that when I try to use join.php to add a new user, the user does not get added to the database.

Any help greatly appreciated, and many thanks for this awesome free script btw!

Toby
Logged
phobic
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 3


View Profile
« Reply #1 on: December 01, 2010, 04:09:38 pm »

UPDATE:

There is a PHP error in the server log:

[Wed Dec 01 11:06:15 2010] [error] [client 72.38.129.50] PHP Warning: session_register() [<a href='function.session-register'>function.session-register</a>]: open(/var/lib/php/session/sess_4mf13e0e0c3hekdu7cn8b2dvd0, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/sdco.ca/httpdocs/auth/config.php on line 84, referer: http://sdco.ca/newsletters/login.php
[Wed Dec 01 11:06:15 2010] [error] [client 72.38.129.50] PHP Warning: Unknown: open(/var/lib/php/session/sess_4mf13e0e0c3hekdu7cn8b2dvd0, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://sdco.ca/newsletters/login.php
[Wed Dec 01 11:06:15 2010] [error] [client 72.38.129.50] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: http://sdco.ca/newsletters/login.php

Thanks..
Logged
munk
Administrator
Sr. Member
*****

Karma: +2/-0
Offline Offline

Posts: 368


View Profile WWW
« Reply #2 on: December 01, 2010, 08:19:59 pm »

UPDATE:

There is a PHP error in the server log:

[Wed Dec 01 11:06:15 2010] [error] [client 72.38.129.50] PHP Warning: session_register() [<a href='function.session-register'>function.session-register</a>]: open(/var/lib/php/session/sess_4mf13e0e0c3hekdu7cn8b2dvd0, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/sdco.ca/httpdocs/auth/config.php on line 84, referer: http://sdco.ca/newsletters/login.php
[Wed Dec 01 11:06:15 2010] [error] [client 72.38.129.50] PHP Warning: Unknown: open(/var/lib/php/session/sess_4mf13e0e0c3hekdu7cn8b2dvd0, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://sdco.ca/newsletters/login.php
[Wed Dec 01 11:06:15 2010] [error] [client 72.38.129.50] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: http://sdco.ca/newsletters/login.php

Thanks..

Looking at that briefly it looks as though it's a problem with the file permissions on the session files and the webserver can't write to the session files properly. Have a look at the permissions and see if you can change them to allow the webserver user to write to the files.

On my server it's setup so the session file directory is owned by the webserver user, and then inside that directory there's a bunch of webserver session files all with permissions of 600 (ie rw by webserver user only).
Logged

~ Jez
phobic
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 3


View Profile
« Reply #3 on: December 01, 2010, 08:52:27 pm »

Many, MANY thanks!

I was looking into read/write errors for the config.php file (due to wrongly interpreting that error log msg) but actually found this on my host knowledge base:

http://kb.mediatemple.net/questions/652/(dv)+Session+Save+Path+Errors+and+the+Vhost.conf

and the problem is now fixed!

I can't afford much, but have donated via the link on munk.me.uk..
Logged
munk
Administrator
Sr. Member
*****

Karma: +2/-0
Offline Offline

Posts: 368


View Profile WWW
« Reply #4 on: December 01, 2010, 09:57:44 pm »

Wow that's very generous of you thanks, I wasn't expecting anything so that's very nice.

Glad it's sorted. Smiley
Logged

~ Jez
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!