Page 1 of 1

Di chuyển website Joomla từ host này sang host khác

Posted: Mon, 19/01/2015 12:35 PM
by admin
Gồm có 2 bước
Tải toàn bộ file website joomla từ host cũ về máy tính của bạn
Sử dụng FTP client (e.g. FileZilla) hoặc chương trình quản lý file có sẵn của host
Chọn thư mục muốn tải về (thường là /public_html/ or /htdocs/)

Tải toàn bộ file từ máy tính lền host mới
Bạn phải chắc chẳn là file configuration.php đã cấu hình đúng (đặc biệt là các thông tin: localhost, database, database user, database password, log_path, tmp_path)
Sử dụng FTP client (e.g. FileZilla) hoặc chương trình quản lý file có sẵn của host

Tải database với phpMyAdmin

Bạn cần tạo database mới hoàn toàn,
Đăng nhập vào database sử dụng phpMyAdmin
Chọn database name ở cột bên trái
Chọn Import tab
Click nút Browse dưới "File to import", sau đó chọn database từ máy tính của bạn
Click Go để import database


Thay đổi nội dung file configuration.php
var $host = 'localhost'; // usually "localhost". If it's different for your server then your hosting provider should be able to tell you that.
var $user = 'the_db_username';
var $db = 'the_databasename';
var $password = 'the_db_password';
var $live_site = ''; // is usually empty.
Joomla will work, even if $log_path and $tmp_path are wrong, though you won't be able to install extensions. Login into the back-end of your new Joomla site.

In Joomla 2.5 go to: Site > System Information > Directory Permissions.
In Joomla 3 go to: System > System Information > Directory Permissions.
Look at the bottom 4 rows:

cache (Cache Directory) Writable
administrator/cache (Cache Directory) Writable
/var/www/some/other/folder/example.com/logs/ (Log directory) Unwritable
/var/www/some/other/folder/example.com/tmp (Temp directory) Unwritable
If the $log_path and $tmp_path are "Unwritable", you'll need to change the values in configuration.php.

Use the values of the "Cache Directory" without the "/cache/" part and change $log_path and $tmp_path to

var $log_path = '/var/www/example.com/logs';
var $tmp_path = '/var/www/example.com/tmp';
If the Directory Permissions show that $log_path and $tmp_path are "Writable", then you should be able to install extensions.

Tham khảo thêm tại:
https://docs.joomla.org/Copying_a_Joomla_website

VIDEO:
https://www.youtube.com/watch?v=qCfA4QCa7Vc