Cách chuyển code opencart từ localhost lên hosting đơn giản

Posted by admin 07/11/2015 11 Comment(s) Tin tức phụ kiện,

Mình có cách khả quan cho bạn để chuyển code opencart từ localhost lên hosting như thế này:

Các bạn chỉ cần làm theo 6 bước sau là đảm bảo thành công thôi.

Bước 1: Cần đưa tất cả các file ở localhost (host cũ) sang host mới. (Bước này dễ dàng rồi)

Bước 2: Mở các file config.php và admin/config.php xoá hết toàn bộ nội dung trong 2 file đó. (Mở file lên và xóa nội dung thôi nhé)

Bước 3: Backup database ở host cũ ra sau đó đổi tên file sql đó thành opencart.sql rồi vứt vào thư mục "install". Chú ý: ở host cũ khi cài xong bạn đổi tên thư mục "install" là gì thì giờ đổi lại là được, còn lỡ bạn xoá nó đi rồi thì bạn dùng phiên bản Opencart nào thì tìm thư mục install của phiên bản đó up lại và nhớ là phải chép đè file opencart.sql vừa mới backup đè lên thư mục cài đặt nhé.

Bước 4: Tạo Database ở host mới.

Bước 5: Xong những bước trên bạn tiến hành chạy url http://domain.xxx/install để cài site vào. (Trong đó domain.xxx là tên miền của bạn)

Bước 6: Nó sẽ tự động cài đầy đủ cho bạn luôn chỉ cần bạn điền thông tin của host mới trong lúc cài đặt là được.

Ghi chú: Với cách này bạn không cần lo sửa 2 file config như thế nào cho đúng kể cả 2 host khác nhau về đường dẫn thư mục cũng không lo.

Chúc bạn thành công!

11 Comment(s)

Vanessa Jackson:
03/10/2025, 09:50:12 PM, levited.com
Reply

I simply could not go away your site before suggesting that I extremely enjoyed the usual information a person provide to your guests? Is going to be back ceaselessly in order to check up on new posts

Jennifer Johnson:
07/10/2025, 03:52:00 AM, antibact.sbs
Reply

Hurrah! In the end I got a webpage from where I be capable of genuinely obtain valuable information concerning my study and knowledge.

Kimberly Franklin:
10/10/2025, 03:36:00 AM, dapoxetined.org
Reply

Greetings! Very helpful advice within this post! It's the little changes that will make the most important changes. Thanks for sharing!

Tiffany Savage:
10/10/2025, 03:24:51 PM, amoxibest.top
Reply

I will immediately clutch your rss feed as I can not find your email subscription hyperlink or newsletter service. Do you have any? Kindly let me know so that I may just subscribe. Thanks.

Lauren Lawson:
11/10/2025, 12:40:56 AM, medshop24h.top
Reply

Hi there, I would like to give a thank you for the post. I posted it on my FB page and got a great reaction. Keep up the great work.

Jesse Green:
11/10/2025, 08:57:05 PM, tadalah.com
Reply

I am sure this paragraph has touched all the internet users, its really really pleasant article on building up new web site.

Jeremy Hudson MD:
12/10/2025, 04:52:41 AM, sildenafiil.cc
Reply

I will right away grab your rss as I can not find your email subscription hyperlink or e-newsletter service. Do you’ve any? Kindly allow me recognize in order that I may just subscribe. Thanks.

Vickie Barrett:
12/10/2025, 04:05:02 PM, propeciaa.sbs
Reply

I visited many web sites but the audio quality for audio songs current at this site is really superb.

Ann Soto:
12/10/2025, 10:33:03 PM, sildenaguide.com
Reply

Good day! Do you know if they make any plugins to help with SEO? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good results. If you know of any please share. Thanks!

Juan Bass:
28/10/2025, 02:14:34 AM, zithromax24h.sbs
Reply

These are genuinely fantastic ideas in about blogging. You have touched some fastidious things here. Any way keep up wrinting.

Leslie Richard:
29/10/2025, 07:34:07 AM, kamagras.shop
Reply

You have made some decent points there. I checked on the net to learn more about the issue and found most people will go along with your views on this site.

Write a Comment