1.3 with PHPBB2 PLEASE HELP 1.3 with PHPBB2 PLEASE HELP
 

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]

Main Menu

1.3 with PHPBB2 PLEASE HELP

Started by rjefferis, September 16, 2004, 08:07:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rjefferis

Hi I am trying to set up my cpg to use the same stuff as my phpbb2 but i just cant get it to work and i cannot seem to find out why. I understand this is an effort for you guys to look through my crap but please help if you can. My Settings are as follows.

The adress for the site is http://212.67.202.169/~rjefferis/ this is due to the domain name i want i already am using with my server so i just use this to host the sql databases.

It is a pipex hosting account so it has all the stuff you need to run both phpbb and cpg, ok.

The sql database name is       trialdb
The sql database login is         trial
The sql database password is   test

Both of them use this database.

cpg is installed into cpgtest folder on the site and phpbb is installed into phpbb2

Here is what i have inside my files.

phpbb.inc.php

// database configuration
define('PHPBB_DB_NAME', 'trialdb'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'trial'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'test'); // 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', 'http://212.67.202.169/~rjefferis/phpBB2/');
// 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



cpg_redir.php

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

When i try to login to cpg it just says page cannot be displayed. Can anyone tell me what i have done wrong. Thank you.


Rob.


Nibbler

// 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/'.


You have that set wrong, should be a path not a full URL

The cpg_redir is edited wrongly also.

rjefferis

I originally had it set with just the path eg /phpBB2/ or whatever it is. But this still didnt work. What do i need to change in the cpg_redir file.

Thank you.

Rob.

Nibbler

The only thing you are supposed to change in that file is the $cpg_path. Leave the rest as it was,

globalfisher

Do you change the cpg path to the address where it is in the ftp?