Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
430 views
in Technique[技术] by (71.8m points)

deployment - How do I transfer a local Magento install onto my live server?

image

Uploading a Magento install

I have spent a long time building a store with Magento on my local development PC.

Now that I am happy with the result, I would like to upload it to my live production server.

What steps must I complete to ensure this move is as easy as possible?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

moving files and database

I assume these two steps are obvious:

  1. copy all of your local files to production server
  2. dump your magento local db and import it into your production server db

editing in production server

now on your production server you need to follow these two steps:

  1. edit app/etc/local.xml file and change database info

  2. in production db,in its core_config_data table, you should find every records containing the url of your local installation, then you need to update those values;which can be found with this query:


     SELECT *
     FROM `core_config_data`
     WHERE `value` LIKE 'http://%';

edit (thanks to comments):
3. Do not forget to delete var folder contents
4. it'd better if you remove the content of app/etc/use_cache.ser too


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.8k users

...