Login issue: cookie, php.ini or bug? Login issue: cookie, php.ini or bug?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Login issue: cookie, php.ini or bug?

Started by marci, November 14, 2003, 12:22:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

marci

Hi to evryone on the board and cheers to the programmers of Coppermine, great work, the best free/opensource gallery I could ever find with loads of customization, functions and graphix! GREAT!!

But here's the problem :shock:: I can't login neither as an Admin nor as a user. I already went through every single post regarding this issues, tried all the solutions in the FAQ but still ain't getting any result. Plus I've got two different and bizzare results.

Ok I've tried these two configurations to get the gallery to work:

Configuration 1 :D
- installed Coppermine on my website http://marci.altervista.org/gallery/index.php
- launched install.php and configured Coppermine
- checked my database and Coppermine's tables were created correctly and filled with the right user and config info
- did the login and worked perfectly
- still have some refresh issues but login/cookie/admin panel all work smooth
(PHP v4.3.2 - Apache v1.3.28 - mySQL v3.23.49)

Configuration 2 :x
- installed Coppermine on my computer running a local Apache server with PHP&mySQL (see below for versions details)
- launched install.php and configured Coppermine
- checked my database and Coppermine's tables were created correctly and filled with the right user and config info
- did the login and - BOOM - I'm back to the index page with no admin panel and no login
- tried to connect straight to admin.php but it says I have no access granted.. ergo I'm not logged in!!!
(PHP v4.2.2 - Apache v2.0 - mySQL v3.23.36)

Ok now to the testing I did: I've used two browsers, IE v6.0.2800 and Opera v7.22. Activated in both all cookies options, deselected all blocking options. Closed them and reopened them. Shut down the system and reloaded it. Deleted all the cookies. Changed the cookies prefix in the config table in the database. Redid everything and still no results! :evil:

I've come to the point that the only answer might be to tweak the php.ini file on my local server. So i dumped both the phpinfo of my website and of my local server: there are almost no diferrences. I say almost because I'm not so sure about all variables. :?
So is there anyone that has a little clue about what variables does coppermine look at or need for managing its cookies?? Could it be this the problem?? :roll:

Please if anyone could help I'll be grateful, I'm going nuts :wink:
---------------------------
mar(c)ello
---------------------------

Joachim Müller

I know that there are issues with apache2 (probably not related), but maybe this requires some looking into.
Did you build php on your own server or did you download a package?
It's very hard to do a tracking on this, since there are so many components on your server that might cause problems (apache config, php config and build, os config).
Frankly, I have no idea where to start looking into this.

GauGau

marci

Thanx for the quick answer!

I've installed FoxServ 3.0 package on my local server. Anyway I'm continuing the testing process and ran into the following:
- I've uploaded on my intranet the Coppermine files and installed the gallery, configured and it's working (let's call it Configuration 3)
- the PHP version of the intranet is v4.3.3
- I've launched phpinfo again on both my local server and this time the intranet one, result: Thread Safety option is disabled on intranet while on local (Config.2) is enabled. Checking back the other installation I made on a web site (Config.1) I've noticed that this option is also disabled on that server.

Do you think it might be the answer?? Unfortunately I haven't discovered yet how to disable this option in PHP.

Any further clue???

Thanx!
---------------------------
mar(c)ello
---------------------------

moorey

Quote from: "marci"Configuration 1 :D
(PHP v4.3.2 - Apache v1.3.28 - mySQL v3.23.49)

Configuration 2 :x
(PHP v4.2.2 - Apache v2.0 - mySQL v3.23.36)

Looks interesting. Really if it was the other way around both would probably be working fine (ie PHP4.3.* with Apache2, PHP4.2.* with Apache1).

For Apache2, I would suggest getting the latest PHP compiled and try that out. I've had some problems on Apache2 using and slight older PHP4.. upgraded PHP to latest ver and they vanished.

marci

I'll give it a shot by upgrading to PHP 4.3.4! Thanx for the clue...

New problem: playing around with Coppermine in Configuration 3 (lan network) I can't upload any pictures! I guess it might be again a server problem... GOSH!!!!  :roll:

Thanx for the support for now!
---------------------------
mar(c)ello
---------------------------

Trinity

Quote from: "marci"Thanx for the quick answer!

I've installed FoxServ 3.0 package on my local server. Anyway I'm continuing the testing process and ran into the following:
- I've uploaded on my intranet the Coppermine files and installed the gallery, configured and it's working (let's call it Configuration 3)
- the PHP version of the intranet is v4.3.3
- I've launched phpinfo again on both my local server and this time the intranet one, result: Thread Safety option is disabled on intranet while on local (Config.2) is enabled. Checking back the other installation I made on a web site (Config.1) I've noticed that this option is also disabled on that server.

Do you think it might be the answer?? Unfortunately I haven't discovered yet how to disable this option in PHP.

Any further clue???

Thanx!

Same problem here... same setup. Foxserv is very slick, but this looks to be an issue with the combo that Foxserv uses. I would be interested in any fix for this.

PHP 4.22
Apache 2
mysql 4.01 Alpha (hmmm)

I try to login and it says welcome Jim then pops right back like I was blocking cookies or something.