Page 1 of 1

Unable to login to panel after fresh install

Posted: 26 Jul 2015, 04:36
by Tekphotos
So I just got the link for the x3 beta and after uploading and editing the config.php for login credentials when I try to login to /panel it seems to just refresh the page... If I enter the wrong information purposefully I get an error msg about wrong credentials but entering the same information I have placed in the config.php the page just refreshes when I submit bringing me right back to the login. I have run the /check and the only thing that seems off is under "SERVER_ADDR" it is returning "Notice: Undefined index: SERVER_ADDR in /hermes/bosnaweb05a/b2506/nf.tekphotos/public_html/v3/check/index.php on line 522" don't know if it has anything to do with me being unable to login to the /panel section. Everything else seems to be working fine as far as the demo goes.

x3 link: http://tekphotos.org/v3/

Re: Unable to login to panel after fresh install

Posted: 26 Jul 2015, 06:55
by mjau-mjau
Hmm, I can't imagine it is related to server_address, and everything else seems ok including the mcrypt extension required by the panel to encrypt logins.

To be able to diagnose further, I will need FTP login ...

Re: Unable to login to panel after fresh install

Posted: 26 Jul 2015, 12:36
by Tekphotos
Sent you a PM

Re: Unable to login to panel after fresh install

Posted: 26 Jul 2015, 22:38
by mjau-mjau
I checked the panel error log, and I have definitely located the issue.
Code
[26-Jul-2015 19:57:45 EST5EDT] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
[26-Jul-2015 19:57:45 EST5EDT] PHP Warning:  Unknown: open(/var/php_sessions/sess_081595b989520689e544897e615eea24, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Every login-based PHP application, including the X3 panel, relies on PHP sessions to store the current login-session. If it is broken, the login will be accepted, but on the next page, the login is already forgotten ... Thus you are redirected back to the login page again.

I am not quite sure what is wrong, but you need to contact your hosting service about this. Either there is a non-standard path, or permissions are not set correctly for writing to the sessions folder.

Re: Unable to login to panel after fresh install

Posted: 26 Jul 2015, 23:16
by Tekphotos
Looks like the link I sent you in my last PM worked I had to modify my php.ini and set the php_session save path to one local to my directory on my shared hosting plan. Thank you for looking into it and guiding me in the right direction.

Re: Unable to login to panel after fresh install

Posted: 27 Jul 2015, 01:03
by mjau-mjau
Nice. I assume it works now then? Thanks for sharing.