CPG1.33 + PHPBB 2.0.15 Integration Cannot Login in CPG CPG1.33 + PHPBB 2.0.15 Integration Cannot Login in CPG
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

CPG1.33 + PHPBB 2.0.15 Integration Cannot Login in CPG

Started by masdia, June 02, 2005, 10:48:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

masdia

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!!  ::)

Nibbler

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.

masdia


kehbop

I have the same problem...

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

Tranz

Could you please provide the same info that masdia provided in the first post?