How to duplicate a live site to use as a test site

@Brogan I've followed the steps to the T - Having issues with accessing the staging/test forum at all.

Page not found​

The requested page could not be found.

is the only message I get. That's from going to the site index, to trying the acp. Same message.

The database is copied over, all of the files including hidden files are copied over - I can't see what the issue would be.

Do you have any tips? Willing to share login details if needed - URL is as follows


Best wishes,
Greg
 
Probably something for your sysadmin or host to look into.

I've followed the steps in the guide many times without issue and the dupe installation works every time.
 
  • Add the code below to the bottom of the new test installation /library/config.php file
    • PHP:
      $config['enableMail'] = false;
      
      $config['cookie'] = array(
      'prefix' => 'test_',
      'path' => '/',
      'domain' => ''
      );

If the new test forum will be at "domain.com/testforum/" what i need to change in the config.php?

Regards
 
Or i need to put this way?

Code:
$config['cookie'] = array(
'prefix' => 'testforum',
'path' => '/testforum/',
'domain' => ''
);

Someone knows this?
 
I'm still getting a blank page on my dev site. This is the config file for the dev site:

PHP:
ini_set('display_errors', true);

$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = 'xxx';
$config['db']['password'] = 'xxx';
$config['db']['dbname'] = 'xxx';

$config['fullUnicode'] = true;
$config['enableAddOnArchiveInstaller'] = true;
$config['debug'] = true;
$config['development']['enabled'] = true;

$config['enableMail'] = false;
$config['removeThemeHouseBranding'] = true;
$config['enableLoginCsrf'] = false;

$config['cookie'] = array(
'prefix' => 'dev_domain_',
'path' => '/',
'domain' => 'dev.domain.com'
);

$config['adminColorHueShift'] = 250;

 $c->extend('options', function(\ArrayObject $options)
{
    $options->boardUrl = 'dev.domain.com';
    $options->boardUrlCanonical = false;
    return $options;
});

Anything else I could be missing?
 
Does navigating directly to admin.php work?

Are there any other (blank) index files in the XF root?

If not them I'm out of ideas.

No other index files.

I switched up my mysql query that updates the board info after copying the DB over, now I can get into the admin. I use rsync -a to copy the files from the live to dev folders ... somehow i'm getting these errors through:
Screen Shot 2021-09-14 at 2.09.16 PM.png

Do I need to truncate any cache tables in the DB?
 
For creating the new directory on the server... our main forum files are located in the public_html folder. Should I create the /test folder inside of the public_html folder and copy all public_html files to public_html/test... or create the /test folder in the root folder outside of public_html?
 
I'm not understanding how to add a prefix to cache... here is the code from the original config file...

Code:
$config['cache']['enabled'] = true;
//$config['cache']['sessions'] = true;
$config['cache']['provider'] = 'Redis';
$config['cache']['config'] = [
//      'directory' => '/home/blahblahblah/www/cache'
    'host' => '127.0.0.1',
    'port' => 6379,
    'timeout' => 0.0,
    'persistent' => false,
    'persistent_id' => ''
];
 
Top Bottom