Coppermine path? Coppermine path?
 

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

Coppermine path?

Started by Greyman, March 07, 2004, 11:25:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Greyman

ok this is the first time I have used copermine and it looks pretty amazing.  At least it  will be when i get it to work.

The problem im experiencing appears to only affect a couple of links.  I installed coppermine according to the instructions and the database was created and I can log into the admin area.  When i access the config.php and try to update it seems to post to my website root folder instead of the coppermine folder.  I.e. the config is in http://family.2smart.biz/famgallery/config.php.  After making changes and hitting the update button the url changes to http://family.2smart.biz/config.php - which of course doesn't exist and results in a 404 error page.

The same goes with changing from admin mode to user mode, which seems to redirect to my main index.php of my site.

I cant seem to find any reference to specifing the path of coppermine as you do with phpbb or similar programs/scripts.

Having said all that i just tried to login and it now redirects me to my main index.php again.  So i cant even log in.  I have not as yet tried to bridge coppermine with phpbb yet so i haven't modified any files what so ever.

Any help here would be greatly appreciated.

Also on a second note i dont use cookies with phpbb only sessions, will this be a problem with integrating coppermine.

Thanks  :oops:

Casper

Sounds like a server permissions problem.  Try this thread http://forum.coppermine-gallery.net/index.php?topic=4105
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Greyman

No its not a server permission problem, well i dont think it is.  I have got several config files to work including phpbb, fusionnews, a couple of phppoll programs.

And yes the ecard url is set to http://family.2smart.biz/famgaller

with no trailing slash.  My webhost is a pretty good one considering its lycos and there does not seem to be any issue with permissions on other config files.  And why would this affect the changing from user to admin link?  It seems to be changing to the websites root folder instead of looking in the coppermine folder for some reason.  Is there no where to specify the correct folder?  like in phpbb?

The proof is in trying to access the copermine index.php from any link within the admin area as it jumps back a folder level and goes to the sites main page which is also index.php.

Quite frustraiting really.

Thanks for the quick reply btw.

Greyman

Oh yes i read the link you posted, but can i repeat that i can access the config file, it the update that causes the problem.  It posts to config.php on the websites root rather that the coppermine folder.

eg http://family.2smart.biz/config.php instead of where it should be which is http://family.2smart.biz/famgallery/config.php

just seems that its a bit confused where its files are.

Greyman

Ok found some help on page 25ish but it still took some fiddling as the explenation was a bit vague.

Basically changed init.inc.php to:

// Initialise the $CONFIG array and some other variables
$CONFIG = array();
$PHP_SELF = $_SERVER['PHP_SELF'];
$REFERER = urlencode($PHP_SELF . (isset($HTTP_SERVER_VARS['QUERY_STRING']) && $HTTP_SERVER_VARS['QUERY_STRING'] ? '?' . $HTTP_SERVER_VARS['QUERY_STRING'] : ''));
$ALBUM_SET = '';
$FORBIDDEN_SET = '';
$CURRENT_CAT_NAME = '';
$CAT_LIST = '';

Will this cause any problems anywhere else?  Not sure but it seems to return the right path now for coppermine files.

Self help.....thats they way to go.

 :twisted:

Joachim Müller

Why do I get the impression there has been support by pm on this issue? :wink:

Just a note: Lycos is imo not a good webhost, it's a cheap webhost (actually, a free one, which makes it a good webhost for some people). Having the server vars crippled in PHP (that's the reason for having to edit the path manually) doesn't make it rank higher on my own personal list. :roll:

GauGau

Casper

Quote from: "gaugau"Why do I get the impression there has been support by pm on this issue? :wink:

Not from me.  I think he sorted it himself, judging by the last sentence, although he seems not to want to give us the time to help.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Greyman

Hey no offence ment.  Infact im sure i said thanks for the quick reply which wasnt sarcasm.  And im not using the free webhosting at lycos, its rented and in my opinion is fairly flexible and the support staff are very helpful.

Anyway, i was eager to sort the problem and did so.  I even posted what i did incase anyone else has the same issue.  The help i used was from this site and wasnt a pm -
http://forum.coppermine-gallery.net/index.php?topic=2712&postdays=0&postorder=asc&start=15

But the actual code to change wasnt that specific so i played around with a few variations and came up with the above because $HTTP_SERVER_VARS['SCRIPT_NAME'];  didnt work for me.

So thanks for the help it was appreciated.....minus the cynical comments of course.

Casper

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here