After installproblem After installproblem
 

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

After installproblem

Started by sva, October 12, 2005, 09:53:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sva

After install i will login after the loginscreen the program will go to http://www.mysite.com/index.php not  http://www.mysite.com/mygalleri/index.php.
And the same when i try too config the galleri when i try too save the new setup then i will go to wrong place.
What to do someone, that have the same problem coppermine 1.3.5

Joachim Müller

don't post dummy placeholder URLs, but actual ones. Make sure to specify the "target for ecards" link, and take a look at the threads on this board that deal with improper server setup, especially for server vars not getting populated properly.

sva

Thank's for your answer, it was my first wisit on this forum, wery quick and precise answer so now i hope too get all work's.
Thank's again.
If you really whant's to se it go too http://www.pesvahn.com/svahn/Copper/index.php

Joachim Müller


sva

#4
Ok when looking in forum after solutions i found one that change in config.php "config.php" instead for "$PHP_SELF" but this is what i understand not a solution for a longer time. So i also found that it should be better to change in Init.inc.php file some code.
I will test this one also.
My hostserver is running PHP4u ver 3.0, based on PHP 4.3.10.

Thanks

sva

#5
Now i have made some updates in init.inc.php file like this
$PHP_SELF = '';
$possibilities = array('REDIRECT_URL','PHP_SELF','SCRIPT_URL', 'SCRIPT_NAME','SCRIPT_FILENAME');
foreach ($possibilities as $test){
   if (isset($_SERVER[$test]) && preg_match('/([^\/]+\.php)$/', $_SERVER[$test],$matches)){
      $PHP_SELF = $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'] = $matches[1];
      break;
   }
}

And now does it realy works better, i have not tested all functions but so far no problems.
Thanks for the help.
Today 051013 i have tested and it look like it will work well.