The free forums are no longer in use. It remains available as read-only archive.
Hi David! When doing a restore, XCloner updates the new config file with the new mysql details, and comments the others, if it does not do this however, there might be a restore issue, did you receive the success message on the configuration update?
As for AUTH_KEY, we will need to look into that to see if changing it will affect the site functionality.
Regards, Ovidiu
11:16 am
September 26, 2010
2:00 pm
September 30, 2010
$config_data = preg_replace("/define\('DB_HOST(.*)/i", "define('DB_HOST', '".$_REQUEST[mysql_server]."');#", $config_data);
$config_data = preg_replace("/define\('DB_USER(.*)/i", "define('DB_USER', '".$_REQUEST[mysql_username]."');#", $config_data);
$config_data = preg_replace("/define('DB_PASSWORD(.*)/i", "define('DB_PASSWORD', '".$_REQUEST[mysql_pass]."');#", $config_data);
$config_data = preg_replace("/define('DB_NAME(.*)/i", "define('DB_NAME', '".$_REQUEST[mysql_db]."');#", $config_data);
Warning: preg_replace() [function.preg-replace]: Compilation failed: missing ) at offset 23
3:05 pm
September 30, 2010
Awesome- worked perfectly:
$config_data = preg_replace("/define\('AUTH_KEY(.*)/i", "define('AUTH_KEY', '".$randomkey."authkey');#", $config_data);
$config_data = preg_replace("/define\('SECURE_AUTH_KEY(.*)/i", "define('SECURE_AUTH_KEY', '".$randomkey."secureauthkey');#", $config_data);
$config_data = preg_replace("/define\('LOGGED_IN_KEY(.*)/i", "define('LOGGED_IN_KEY', '".$randomkey."loggedinkey');#", $config_data);
$config_data = preg_replace("/define\('NONCE_KEY(.*)/i", "define('NONCE_KEY', '".$randomkey."noncekey');#", $config_data);
$config_data = preg_replace("/define\('AUTH_SALT(.*)/i", "define('AUTH_SALT', '".$randomkey."authsalt');#", $config_data);
$config_data = preg_replace("/define\('SECURE_AUTH_SALT(.*)/i", "define('SECURE_AUTH_SALT', '".$randomkey."securesalt');#", $config_data);
$config_data = preg_replace("/define\('LOGGED_IN_SALT(.*)/i", "define('LOGGED_IN_SALT', '".$randomkey."loggedsalt');#", $config_data);
$config_data = preg_replace("/define\('NONCE_SALT(.*)/i", "define('NONCE_SALT', '".$randomkey."noncesalt');#", $config_data);
Thanks,
David
1 Guest(s)