phpBB Integrated - Server Move phpBB Integrated - Server Move
 

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

phpBB Integrated - Server Move

Started by tmhall, May 05, 2004, 10:43:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tmhall

I have 1.2 up and running, integrated with my phpBB 2.0.4 installation, and I want to upgrade my phpBB to 2.0.8a. My plan is to do the upgrade on my test server then, when it's all working, upload it to the live server. So I downloaded a copy of the whole site to my test server, as well as a copy of the database. Now I can log in to the forum on my test server as usual, and I can login and access CPG if I disable the phpBB bridge, but if I don't disable the integration I get "You are not authorized to view this page" when I click on my photo gallery link.

Any ideas?


Joachim Müller

no idea, that's why I didn't post in the first place. I guess it's the same with the other supporters. You surely didn't want to hear "it doesn't work because you made something wrong" ;)

GauGau

tmhall

Quote from: GauGau on May 07, 2004, 08:19:36 PM
no idea, that's why I didn't post in the first place. I guess it's the same with the other supporters. You surely didn't want to hear "it doesn't work because you made something wrong" ;)

GauGau

Hehe.  ;D Okay, fair enough. The problem is, though, that I didn't install it, so I'm trying to reverse engineer what the other guy did so I can upgrade phpBB without losing all the comments on each photo. I'm thinking I can just dump the cpg tables and reinsert them after the upgrade, but I wanted to test it out first. Any tips?

Thanks.

Joachim Müller

yes, if you want to keep your data, making a backup (dump) of your database is of course mandatory.
As long as the new server isn't live and you're free to play with it, you could as well set up coppermine from scratch on the new server, copy the content of the albums-folder to the new server and restore the original database (well, except the config maybe). Make sure you have two dumps: one that will create the structure for you and one that will fill the structure with data. If you install from scratch and decide to fill the database with the old values from the dump, just use the dump that contains only the data.

GauGau

tmhall


tmhall

Okay I figured out the first issue. I had to add index.php to the directory index section of my httpd.conf  :-[

Now... I have an issue others have mentioned, and though I've read every thread here on the subject and the documentation a million times, I can't seem to get past it. :(

I log in to the forum, click on the photo gallery link and get taken back to the login page instead of into the gallery as it should. Then if I try to log in there, nothing happens. The page just refreshes. I've checked all the files and settings repeatedly.

config.inc.php

<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] = "localhost";        // Your database server
$CONFIG['dbuser'] = "tomas";        // Your mysql username
$CONFIG['dbpass'] = "****";                // Your mysql password
$CONFIG['dbname'] = "gh_forum";        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                "cpg11d_";
?>



phpbb.inc.php

// database configuration
define('PHPBB_DB_NAME', 'gh_forum'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'tomas'); // 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
// In this example http://yoursite_name.com/phpBB2/
define('PHPBB_WEB_PATH', 'http://plato/gh/forum/');
define('PHPBB_LOGOUT_GET', FALSE);
// ------------------------------------------------------------------------- //
// 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


cpg_redir.php

<?php
$cpg_host
=$_SERVER['HTTP_HOST'];
$cpg_path='/gh/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>



Any ideas?