View Full Version : Login to Admin
dennis.hacker262917
11-26-2009, 02:17 PM
It appears during the install that everything happened correctly. However, when I try to login, it gives me an error and tells me to enter the correct login information to access the page.
Any clues?
neilo
11-26-2009, 02:58 PM
At some point during the setup (once you have uploaded the folder) you will have to enter your database details - these are for your database on your remote server - you should be able to access these details through your hosting provider control panel.
A little later you will be asked to provide a username and password for the admin login. These can be whatever you like.
Which bit are you having problems with?
dennis.hacker262917
11-26-2009, 03:05 PM
The trouble is with the username and password to the admin page. The database information appears correct.
Using IE8 on a Windows Vista platform. The problem occurs immediately after entering the admin information.
neilo
11-26-2009, 04:31 PM
Hiya Dennis,
I think you have a choice of two options. Either
1. Go to your onlide database - (probably accessible through your hosting control panel - phpMyAdmin), open your gallery database, select the 'wa_settings' table, and check your admin username and password. You can change them here if you like.
or
2. Delete the gallery folder from your remote server, and re-upload a fresh copy.
The first option would be a lot quicker, and that's what I'd try first.
dennis.hacker262917
11-26-2009, 05:32 PM
Thanks for the advice. I looked at the wa_settings table, and the username and password are in there correctly.
Could this mean that the connection to the database is never made?
dennis.hacker262917
11-26-2009, 05:46 PM
More investigation:
I went to the error log on the site and the following appeared right after I tried to log in to the admin page.
PHP Warning: Unknown: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
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
PHP Warning: Unknown: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
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
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web166/b1662/ipw.missouriusbc/public_html/PowerGallery/WA_SecurityAssist/Helper_PHP.php on line 5
PHP Warning: Unknown: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
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
PHP Warning: Unknown: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
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
neilo
11-26-2009, 05:51 PM
Hi Dennis,
No, I don't think so, the connection to the database must already have successfully been made in order for the tables to have been created correctly by the gallery set-up.
One thing occurs to me that may have some bearing on your problem; - when I set up my first gallery, all of the files that I unzipped from the downloaded folder were 'read-only', so in Dreamweaver when I put that folder into my site, I right-clicked it in the 'Files' panel and selected 'Turn Off Read Only'.
I would suggest that you do that with your gallery folder in Dreamweaver, and re-upload the lot to your remote site. It may mean having to go through the set-up again, but you know that your database settings are correct, and that your Username and Password are correct, so it shouldn't be too much of a trial.
As that's all I can think of right now, hopefully that will solve the problem.
Let us know what happens.
EDIT: This is in reply to your previous post. But still makes sense (given all the 'failed to write' messages'). See what happens.
dennis.hacker262917
11-26-2009, 07:33 PM
OK. I failed safe, and removed everything. I made sure that the files that I unzipped had the "Read-Only" removed from each of them. I used FileZilla to upload the folder to my website, making sure to monitor for any Failed Transfers. The transfer happened uneventfully.
I verified the username and password in the table "wa_settings" in the database I set up.
I refreshed the error log on my server so that there were no other errors present, and then attempted to log in. The following errors are a direct result of my log-in attempt to the admin page.
PHP Warning: Unknown: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
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
PHP Warning: Unknown: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
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
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web166/b1662/ipw.missouriusbc/public_html/PowerGallery/WA_SecurityAssist/Helper_PHP.php on line 5
PHP Warning: Unknown: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
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
PHP Warning: Unknown: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
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
I don't know what else to do, so I'm at your disposal.
neilo
11-26-2009, 07:46 PM
Hi Dennis,
This has me beaten. You may have to wait for a WA tech to take a look.
Can you confirm that you have the basic mySql and PHP version requirements (PHP 5+, MySQL 5)?
I'll have a think about this, but I feel that I may have exhausted my ideas at the moment. There may be someone with more suggestions who can offer their insight before the WA guys return on Monday.
I'll post back if anything occurs to me.
dennis.hacker262917
11-26-2009, 08:10 PM
Yes, I appreciate you being so thorough.
I did verify the required versions of the PHP (5.2.5) and MySQL (5.0.45), but if I remember right, that's also the in the first step of the setup for the program, and it won't let you go any further if you don't. The program was satisfied, so I assume my server meets the requirements.
I can wait until Monday for a WA tech, but I'll also check at different times during the weekend if anything occurs to you.
Thanks again for the help.
neilo
11-28-2009, 10:19 AM
Just a quick note to say that I haven't stopped pondering - though largely fruitlessly.
Do you have an ftp program other than Dreamweaver's in-built ftp? It might be worth a try using it to set all folder (& sub-folder) permissions for your whole gallery to 777. You may be able to do it through your control panel.
I have no concept of the security implications of this, but - as a test - it may help to rule out permission problems on your remote site.
I will not hold my breath, though.
WA Guys back in two days!
dennis.hacker262917
11-28-2009, 04:50 PM
I already thought of that, and so when I did the last upload I used FileZilla and did exactly that.
Office Guy-172461
11-28-2009, 05:07 PM
Just to make sure we're on the same page. is this the way you installed PowerGallery?
Create folder on server for PowerGallery
Change permissions to 777
Upload PowerGallery files to new folder
Run installation wizard through browser
You might also want to check for charecters in your password that could cause trouble. I had one with a * as the first character that worked fine on one Linux server but not on another. Don't forget that Linux servers are case sensitive whereas Windows servers are not.
dennis.hacker262917
11-28-2009, 07:15 PM
I created the folder on my local machine by exporting the files from the zipped download folder. Then, due to the advice on this thread, I changed the permissions to 777, and uploaded that folder. I ran the installation wizard through IE8.
My password has no special characters. I anticipated that at the beginning, and took out a dash that I normally use. Everything is lowercase and I enter it that way.
BTW...did I mention that I'm really excited about getting this up and running? I know somebody will figure it out eventually. The product has to work, or they couldn't sell it.
Office Guy-172461
11-28-2009, 08:37 PM
One thing I don't understand is you say you changed the permissions before you uploaded. Windows uses a completely different system and if you are using 777 I assume you are uploading to a Linux server. Those permissions would not be uploaded.
Have you tried doing it as I described? Have you tried using Firefox for the install? What kind of server are you using?
Justin Nemeth
11-30-2009, 09:11 AM
PHP Warning: Unknown: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
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
PHP Warning: Unknown: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
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
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web166/b1662/ipw.missouriusbc/public_html/PowerGallery/WA_SecurityAssist/Helper_PHP.php on line 5
PHP Warning: Unknown: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
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
PHP Warning: Unknown: open(/var/php_sessions/sess_72ee26fac8f62b47f1c36b6a6d903749, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
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
Based on these errors, it looks like the session is not able to start when you login. The session is used and checked to see if you are authenticated, so since there are issues saving the session data, that is probably your issue.
Take a look at this function, you might need to (re)set your session save path to a directory that has permissions that allow sessions. http://us2.php.net/manual/en/function.session-save-path.php
This is more of a server config issue and not specifically PowerGallery related, so you could also contact your hosting provider and have them help out with the issue as well. Just give them those errors and once fixed hopefully you'll be good to go.
-justin
dennis.hacker262917
11-30-2009, 12:52 PM
Justin:
I'm in the lobby of O'Hare airport right now, and noticed your posting. Thanks for the guidance. When I get home tonight I will look at what you've suggested, and make the changes necessary. I believe that I know what you're talking about. I just had to change that path for another site I'm working on as well.
Thanks,
Dennis
dennis.hacker262917
11-30-2009, 11:13 PM
Justin:
Thanks for the advice. I added a session_save_path to the auth.php file in the admin folder, and I was able to login to the administration page.
That solved my problem.
Thanks,
Dennis
Jason Byrnes
12-01-2009, 01:48 PM
Denis,
It appears there is an issue on your server with the session.save_path.
The error's are reporting that the currant setting, "/var/php_sessions/" is not valid. That folder likely does not exist. Since the save path is bad, session information cannot be saved.
you will need to contact your host and have them fix the session.save_path in the php.ini file for you.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.