เป็นการย้ายไฟล์และฐานข้อมูลทั้งหมดที่อยู่ในเครื่อง PC ของผมไปยัง Web Server ที่ใช้งานจริงครับ
ขั้นตอนเป็นดังนี้
- Backup หรือ Export ฐานข้อมูล MySQL ในเครื่องหรือเครื่องอื่นเป็น MySQL Text File Database
- Restore ฐานข้อมูลข้อ 1 ไปยัง MySQL Server จริง
- แก้ไขไฟล์ configration.php ค่าต่าง ๆ ต่อไปนี้
$mosConfig_host = 'mysql_server';
$mosConfig_user = 'mysql_user';
$mosConfig_password = 'mysql_password';
$mosConfig_absolute_path = 'server_directory';
$mosConfig_live_site = 'real_url';
$mosConfig_cachepath = 'server_cachepath';
- ย้าย PHP Script ไปยัง Server