Problems logging in (after reading faq/msg board)

crimson

Joined: 2002-09-10
Posts: 3
Posted: Tue, 2002-09-10 05:38

I've just install Gallery (and it's damn nice).

But my problem is, It won't ley anyone (even the admin) login.

Session cookies is enabled, php/apache all work fine. (this is liniux btw, Apache 1.3.26, php 4.2.3).

For the life of me I can't figure out why. Can someone lend a hand?

 
CM
CM's picture

Joined: 2002-09-10
Posts: 2
Posted: Tue, 2002-09-10 06:43

I'm in the same boat. New install on WinXP .. everything passes checks and diagnostics, but the login simple resets itself to a blank login form when submitted. I've tried resetting password and even hard-coding in the username and password into login.php, but it still just resets. Suggestions?? (I also played with every combination of security and privacy levels in IE6 just to make sure).

 
Cus
Cus's picture

Joined: 2002-09-03
Posts: 11
Posted: Tue, 2002-09-10 10:55

Hate to say it but I'm in the same boat with the Debian install of Linux 2.4.17, Apache 1.3.22-5, php 4.1.1 :cry: - have you checked the error logs to see what errors are being generated - my problem seems to be associated with the sessions - IE is not receiving the cookie (I think) but I cannnot figure out why... my installation reports it passed "with flying colours" but a check of the system in the diagnostics page shows that the session ID changes with each refresh of the page (instead of the session number changing)...this may be YOUR problem too. :cry:

Cus

 
Cus
Cus's picture

Joined: 2002-09-03
Posts: 11
Posted: Tue, 2002-09-10 11:22

Well htere's a turn around - I've just rebooted my webserver machine (not just restarting apache) and I'm staring at the "Welcome Administrator" message - now to see what else is happening - but for the life of me I CANNOT explain why a machine reboot has "fixed" my login problem....

Cus

 
crimson

Joined: 2002-09-10
Posts: 3
Posted: Tue, 2002-09-10 15:11

I wish it was. No that all works perfectly diagnostics pass perfectly. And I'm not rebooting a production webserver to get a little gallery working. That's ridiculous.

Quote:
Hate to say it but I'm in the same boat with the Debian install of Linux 2.4.17, Apache 1.3.22-5, php 4.1.1 :cry: - have you checked the error logs to see what errors are being generated - my problem seems to be associated with the sessions - IE is not receiving the cookie (I think) but I cannnot figure out why... my installation reports it passed "with flying colours" but a check of the system in the diagnostics page shows that the session ID changes with each refresh of the page (instead of the session number changing)...this may be YOUR problem too. :cry:

Cus

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-10 17:44

Rebooting is not the solution. It may make your problem go away, but if you don't understand why the problem happened in the first place, you won't be able to fix it.

Crimson, start by figuring out if you're receiving a cookie from the web server when you first start up Gallery. If you're not getting a cookie, then examine your PHP settings. The session_test diagnostic is self contained and uses totally standard PHP calls. Ie, if that fails then it's a problem unrelated to Gallery.

Did you read FAQs 4.21 and 4.23?

 
crimson

Joined: 2002-09-10
Posts: 3
Posted: Tue, 2002-09-10 18:40

I am indeed recieveing cookies.

Gallery seems to be the only program having issues on the box.

I'm hosting 20+ php based forums, 20+ websites that all use php, Geeklog installs, etc, etc. All work flawlessly.

The session test works fine. And the diagnostic's pass with out issues.

Quote:
Rebooting is not the solution. It may make your problem go away, but if you don't understand why the problem happened in the first place, you won't be able to fix it.

Crimson, start by figuring out if you're receiving a cookie from the web server when you first start up Gallery. If you're not getting a cookie, then examine your PHP settings. The session_test diagnostic is self contained and uses totally standard PHP calls. Ie, if that fails then it's a problem unrelated to Gallery.

Did you read FAQs 4.21 and 4.23?

 
Cus
Cus's picture

Joined: 2002-09-03
Posts: 11
Posted: Tue, 2002-09-10 22:39

Response to Bharat....

Quote:
Rebooting is not the solution. It may make your problem go away, but if you don't understand why the problem happened in the first place, you won't be able to fix it.

I realise that - that's why people like me visit forums like this in the first place... to get help with things we don't fully understand. :roll:

If I was in Crimson's position I wouldn't want to reboot a production server either - I rebooted my test server which is identical in its setup to my production server - the reboot "fixed" my logging in problem and I've been successful in creating users, albums and uploading files... but I still have no idea why I did not appear to be receiving the proper session cookie :eek:

Quote:
The session_test diagnostic is self contained and uses totally standard PHP calls. Ie, if that fails then it's a problem unrelated to Gallery.

In my case I've read the FAQ and these forums widely before asking my initial question (to which you responded VERY quickly - thank you :smile: ) and the only thing I can see that is different about my setup is that I reference the test webserv on my LAN by its IP number rather than using a standard URL ie http://192.168.1.253/gallery and http://192.168.1.253/gallery/albums respectively - if you have any ideas about the possible cause of the session_test diagnostic failure on my setup I'd be intersted to hear from you - I'd hate to get it all up and running and then find the same problem on the production server

BTW just so you realise what my level of inexperience is - my servers were assembled and setup under contract by a local consultant who then decided to have a heart attack and I'm in the unenviable position of having to keep things running while he recovers - we're a very small outfit catering to people like us who are not vastly experienced in "the Internet" but who want a "web presence" - I know enough to get myself into trouble and occasionally out of trouble but can't afford to call in the big guns at $150 per hour so I read a lot and trial a lot on the test server before holding my breath and loading the production server :lol:

Keep up the good work....

Cus

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2002-09-11 02:40

Hmm. Ok I think that Cus's problem is solved for the moment. Crimson, create a test account on your Gallery and post the URL, username and password and I'll look at it remotely. If this turns out to be FAQ C.11 or 4.23, you'll feel an overpowering urge to make a donation.