Magento moving steps and possible problems

Source: Internet
Author: User
Tags tmp folder

  1. Delete the cache and session files from the Var file in the original Web site file and delete the cached files in media. It then makes all the files into a compressed package to reduce the file volume and facilitate the transfer.
  2. Transfer the compressed package to the folder that the new server domain name points to, unzip.
  3. Export Magento database, if using phpMyAdmin export, refer to article: http://www.hellokeykey.com/magento-export-database-via-phpmyadmin/. Note: Look at your database has no table prefix, in the 9th step to write.
  4. Create a new database in the new space, and import the backed up data file. If it is not in the Magento database using FOREIGN KEY constraints, through the phpMyAdmin import error, add a row on the exported SQL file
    SET @[email protected] @FOREIGN_KEY_CHECKS, foreign_key_checks=0;
  5. Modify the Magento configuration file, location in App/etc/local.xml, note that the content of the modified CDATA is mainly database connection, database user name, password, database name. This file also contains information about the database table prefix, which is renamed and opened to look under.
  6. Check that the cache and session folders in the Var folder have been emptied.
  7. Visit your website via the URL and go to the Magento installation page.
  8. In the completion of the database step, write the 4th step of the new database name, user name, password, table prefix and other information. Note Check that your database has no table prefixes, or Magento will re-establish all the tables.
  9. After the installation is complete, go to the background to refresh the cache and index management.
  10. Check the front desk for any anomalies. If some pictures do not display properly, check if a fixed link is used, because the domain name is replaced, causing the picture to be invalid.
  11. If you modify the domain name, you also need to modify the Magento database, Core_config_data table in the path is Web/unsecure/base_url and web/secure/base_url content, for your site's new domain name, note the domain name behind the “/”。 Replace the website full domain name +/http://www.abc.com/
  12. Login into the Magento background, enter the system's cache management and index management to refresh the caches, and rebuild the index.

Reference documents

    • Magento Document recognition and moving

    • Magento moving Magento Changing the server step change the database connection replace the domain name
Problems you may encounter when you import a database, you cannot access the home page: There has been an error processing your request

Copy the Magento root directory under/errors/local.xml.sample and name it/errors/local.xml

Change Magento root directory under/lib/zend/cache/backend/file.php

File inside

Protected $_options = Array (        ' cache_dir ' = NULL,        ' file_locking ' = = True,

For

Protected $_options = Array (        ' cache_dir ' = ' tmp/',        ' file_locking ' = true,

Then create the Tmp folder under the root directory.

Then refresh the foreground, "There have been an error processing your request", there is no error, and then according to the error prompt to find a solution to the answer!

The simple thing is to set a directory for Cache_dir ' tmp/'

Note that this is not to be omitted. Oh: Copy the Magento root/errors/local.xml.sample and name it/errors/local.xml

[References]

Forgot Magento background login username/password

After accessing http://domain.com/admin, I found that I forgot my username and password and forgot my mailbox, so I can modify the password in MySQL table directly.

    1. Open the phpMyAdmin of your local or space management background
    2. Go to your Magento database
    3. Click on the Administrator user table for your Magento database Admin_user
    4. When you go in, you'll see a table where you can find the line that corresponds to your administrator's username, and click the Edit button that you want to use as a pen.
    5. Find the Password field, change the string after the value to the password you want, then select MD5 from the drop-down menu in the function, then click the Execute button to OK. Of course, you can also overwrite overrides directly with the MD5 value of your known password. For example, with admin123 this password, his MD5 value is 0192023a7bbd73250516f069df18b500
    6. Use this to overwrite the MD5 value of your original password, then click the Execute button below.
    7. Once you're done, you'll be able to log in with your new password, admin123.

Reference documents

Error rebuilding index: There is a problem with reindexing process.

Magento moving steps and possible problems

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.