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!! ::)
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.
Nibbler,
Really thanks, it works now!
I have the same problem...
But I dont' understand what you mean with the set-cookie stuff. Can you explain so I can understand?
Could you please provide the same info that masdia provided in the first post?