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: CPG1.33 + PHPBB 2.0.15 Integration Cannot Login in CPG  (Read 4784 times)

0 Members and 1 Guest are viewing this topic.

masdia

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
CPG1.33 + PHPBB 2.0.15 Integration Cannot Login in CPG
« on: June 02, 2005, 10:48:00 am »

Hi all,

I am creating a site using PHPBB and just installed CPG.

The PHPBB is almost empty and so does for CPG.

Domain: http://www.petsq.com
PHPBB: http://www.petsq.com/forum
CPG: http://www.petsq.com/database

Both of PHPBB and CPG uses database "phpbb"

Test Account: test / test

Problem: When I do all the things as instructed, login into CPG and then go to my board for entering, and redirect back to CPG, it is not log in.  But it is logged in for the board.

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


init.inc.php
=====================================
define('COPPERMINE_VERSION', '1.3.3');
// User database integration
// Uncomment the applicable line if you want to use it
define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
=====================================


phpbb.inc.php
=====================================
<?php
// database configuration
define('PHPBB_DB_NAME', 'petsq0c_phpbb'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // 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
define('PHPBB_WEB_PATH', '/forum/');
define('PHPBB_LOGOUT_GET', TRUE);
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies
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


Help would be highly appreciated~! Thanks!!  ::)
« Last Edit: June 03, 2005, 05:54:41 am by kegobeer »
Logged

Nibbler

  • Guest
Re: CPG1.33 + PHPBB 2.0.15 Integration Cannot Login in CPG
« Reply #1 on: June 02, 2005, 06:00:31 pm »

Set-Cookie: phpbb2mysql_sid=8734778fef5391469140d1cc5a36161a; path=/; domain=http://petsq.com/


That is not a domain. A domain would be petsq.com. Adjust your forum setup accordingly.
Logged

masdia

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: CPG1.33 + PHPBB 2.0.15 Integration Cannot Login in CPG
« Reply #2 on: June 03, 2005, 02:35:39 am »

Nibbler,

Really thanks, it works now!

Logged

kehbop

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: CPG1.33 + PHPBB 2.0.15 Integration Cannot Login in CPG
« Reply #3 on: November 12, 2005, 05:06:11 am »

I have the same problem...

But I dont' understand what you mean with the set-cookie stuff. Can you explain so I can understand?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: CPG1.33 + PHPBB 2.0.15 Integration Cannot Login in CPG
« Reply #4 on: November 12, 2005, 05:16:25 am »

Could you please provide the same info that masdia provided in the first post?
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 16 queries.