Advanced search  

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]

Pages: [1]   Go Down

Author Topic: cpg_redir.php error  (Read 7449 times)

0 Members and 1 Guest are viewing this topic.

kemper

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
cpg_redir.php error
« on: November 21, 2005, 04:51:40 am »

I have completed all of the documented steps for integration of Coppermine 1.3.5 and PHPBB2.  When I go to login, it sends me to PHPBB2 login.  After I enter username and password, log in sends me to: http://www.mysite.com/forum/cpg_redir.php?sid=e7e0a43cf5d2e46a4ad38bbad8718e72.  This only displays 403 Forbidden Page, "You are not authorized to view this page".

What could I have done incorrectly?  How can I rectify?

Assistance is greatly appreciated.

Awesome product!
« Last Edit: November 22, 2005, 03:52:57 am by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cpg_redir.php error
« Reply #1 on: November 21, 2005, 07:12:48 am »

When requesting bridge support..
An error 403 forbidden is not directly related to coppermine, but to your webserver setup: does the user have permissions to access the cpg_redir.php file on your server? Posting an actual link to your site instead of a dummy url would have helped...
Logged

kemper

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: cpg_redir.php error
« Reply #2 on: November 22, 2005, 03:14:47 am »

Logged

Nibbler

  • Guest
Re: cpg_redir.php error
« Reply #3 on: November 22, 2005, 03:31:24 am »

You need to either get index.php set to be displayed automatically when going to /gallery by using DirectoryIndex or mod the redirect so it does this:

Code: [Select]
$cpg_path='/gallery/index.php';
Logged

kemper

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: cpg_redir.php error
« Reply #4 on: November 22, 2005, 03:35:00 am »

how do I do this?
Logged

Nibbler

  • Guest
Re: cpg_redir.php error
« Reply #5 on: November 22, 2005, 03:38:03 am »

Instead of this:

Code: [Select]
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>


You can put this:

Code: [Select]
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery/index.php';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>


Help using DirectoryIndex is beyond the scope of this support board, if you want to use that then search the web. Also please correct the coppermine version info in your profile as you are running 1.3.x not 1.4.x
Logged

kemper

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: cpg_redir.php error
« Reply #6 on: November 22, 2005, 03:39:25 am »

duh!  I'll give it a whirl.
Logged

kemper

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: cpg_redir.php error
« Reply #7 on: November 22, 2005, 03:43:49 am »

Dammit!  It was something that simple.  I should have thought of that myself.  Thanks for the assistance!
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.