Where zencart migration needs to be modified

Source: Internet
Author: User

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');
}
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.