Transplant zencart and relocate zencart:
1. copy the file to the new server.
2. Copy the database
3. modify the configuration file
1)/shortdes/configure. php
// Modify the Domain Name
Define ('HTTP _ Server', 'HTTP: // www.xx.com ');
Define ('https _ Server', 'https: // www.xx.com ');
// Modify the physical path
Define ('dir _ FS_CATALOG ','/var/www/other/zencart /');
Define ('dir _ FS_ SQL _CACHE ','/var/www/other/zencart/cache ');
// Modify Database Information
Define ('db _ type', 'mysql ');
Define ('db _ prefix ','');
Define ('db _ Server', 'localhost ');
Define ('db _ SERVER_USERNAME ', 'root ');
Define ('db _ SERVER_PASSWORD ','');
Define ('db _ database', 'zencart ');
2)/admin/shortdes/configure. php
// Modify the Domain Name
Define ('HTTP _ Server', 'HTTP: // www.xx.com ');
Define ('https _ Server', 'https: // www.xx.com ');
Define ('HTTP _ CATALOG_SERVER ', 'HTTP: // www.xx.com ');
Define ('https _ CATALOG_SERVER ', 'https: // www.xx.com ');
// Modify the physical path
Define ('dir _ FS_ADMIN ','/var/www/other/zencart/admin /');
Define ('dir _ FS_CATALOG ','/var/www/other/zencart /');
Define ('dir _ FS_ SQL _CACHE ','/var/www/other/zencart/cache ');
// Modify Database Information
Define ('db _ type', 'mysql ');
Define ('db _ prefix ','');
Define ('db _ Server', 'localhost ');
Define ('db _ SERVER_USERNAME ', 'root ');
Define ('db _ SERVER_PASSWORD ','');
Define ('db _ database', 'zencart ');
3) Basically, you can modify the above two configuration files. If necessary, you can modify the configuration in the database (generally not necessary)
In table configuration, configuration_key is the configuration_value value of STORE_PAGE_PARSE_TIME_LOG.
And the configuration_value whose configuration_key is SESSION_WRITE_DIRECTORY is changed to the corresponding new path.
Ps. Path format in windows:/www/zencart/
If the configure. php file is not read-only, a message is displayed in the header. If you cannot modify the file attributes, you can ignore the prompt and modify/initdes/init_init_header.php.
Just comment out the following paragraph.
// check if the configure.php file is writeable
if (WARN_CONFIG_WRITEABLE == 'true') {
$check_path = realpath(dirname(basename($PHP_SELF)) . '/includes/configure.php');
if (file_exists($check_path) && is__writeable($check_path)) {
$messageStack->add('header', sprintf(WARNING_CONFIG_FILE_WRITEABLE, ($check_path == '' ? '..../includes/configure.php' : $check_path)), 'warning');
}
}