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: coppermine and phpbb intergration  (Read 4698 times)

0 Members and 1 Guest are viewing this topic.

aducrejr

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
coppermine and phpbb intergration
« on: December 25, 2004, 06:35:44 am »

can some provide assistance I followed the instructions and I am getting stuck



here is the code i used

Code: [Select]
define('PHPBB_DB_NAME', 'phpbb2mysql'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'mysql'); // The name of the database server
define('PHPBB_DB_USERNAME', '******'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '******'); // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://aducrejr.com/phpBB/',
// you'll have to set the below var to '/phpBB/'.
define('http://aducrejr.com', '/phpBB/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// -------------------------------

Here is the cpr_redir.php as I have it modded

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


« Last Edit: January 23, 2005, 04:50:06 pm by aducrejr »
Logged
www.aducrejr.com/gallery
personal Gallery

Nibbler

  • Guest
Re: coppermine and phpbb intergration
« Reply #1 on: December 25, 2004, 10:10:34 am »

Put the header() line back as it was in cpg_redir.

Also you have the wrong info in the wrong place here
Code: [Select]
define('http://aducrejr.com', '/phpbb/');
That should be

Code: [Select]
define('PHPBB_WEB_PATH', '/phpbb/');
The host and db name are also highly suspect - check them.
Logged

aducrejr

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
Re: coppermine and phpbb intergration
« Reply #2 on: December 25, 2004, 10:05:22 pm »

I think the intergration took place. I can see phpbb groups in CPG 1.3 groups.

Problem is when I try to logout of phpbb 2.0.11 or cpg 1.3 i get a page not found htt404 error
Code: [Select]
/ database configuration
define('PHPBB_DB_NAME', 'phpmyadmin_9'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'mysql'); // The name of the database server
define('PHPBB_DB_USERNAME', 'xxxxx'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'xxxxx'); // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/phpBB/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table


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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: coppermine and phpbb intergration
« Reply #3 on: December 26, 2004, 11:58:47 am »

when going to http://www.aducrejr.com/coppermine I get
Quote
Not Found
The requested URL http:// was not found on this server.
, so the problem seems to be somewhere else ::)

Joachim
Logged

aducrejr

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
Re: coppermine and phpbb intergration
« Reply #4 on: December 26, 2004, 05:47:02 pm »

when going to http://www.aducrejr.com/coppermine I get
Quote
Not Found
The requested URL http:// was not found on this server.
, so the problem seems to be somewhere else ::)

Joachim

Sorry I change the coppermine dir to gallery to see if it would help

www.aducrejr.com/gallery
www.aducrejr.com/phpbb
« Last Edit: December 26, 2004, 06:59:20 pm by aducrejr »
Logged
www.aducrejr.com/gallery
personal Gallery
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.