Hello Coppermine,
I have a problem similar to other login/logout problems other users have, but mine seems a bit different. I'm running clean Coppermine and phpBB installs on my home test server, with both working correctly individually. When I bridge the two, the integration works flawlessly when I test it while browsing on my server (I can login and logout from both Coppermine and phpBB, and be redirected properly). However, when I try it from any other computer in the world, I get a 404 when I login or logout from both Coppermine and phpBB. Despite the error, I can hit back and refresh to find myself properly logged in. There seems to be something wrong with my redirection script, but I can't seem to figure this one out. Any ideas?
Vital Stats:
Copperime Version: 1.3.4
phpBB Version: 2.0.17
Link to my phpBB:
http://68.42.122.78/arrowwood/phpBB2/index.phpLink to my Coppermine:
http://68.42.122.78/arrowwood/coppermine/index.phpLogin: testuser
Pass: test1
phpbb.inc.php file:
// database configuration
define('PHPBB_DB_NAME', '***'); // The name of the database used by the board
define('PHPBB_BD_HOST', '***'); // The name of the database server
define('PHPBB_DB_USERNAME', '***'); // 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
// 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', '/arrowwood/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);cpg_redir.php file:
<?php
if (!$_SERVER['HTTP_HOST'])
{
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
}
else
{
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/arrowwood/coppermine';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>Like I said above, the configuration works perfectly when I browse on my server, but not anywhere else. Any input is appreciated!
Thank you for your time,
-GVSBoy