opencart มีปัญหาหลังเปลี่ยนโฮส/เปลี่ยนโดเมนเนม

เริ่มโดย LovelyPony, 02 ธันวาคม 2012, 17:14:22

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

LovelyPony

พอดีทำการ copy เว็ยที่ทำด้วย opencart จากโฮสนึงมายังอีกโฮสนึงและโดเมนเนมคนละตัว ทำการแก้ไขไฟล์ config.php และ admin/config.php แล้ว แต่พอเข้าหน้า admin มันขึ้นแบบนี้ค่ะ

Error: Could not load database file mysql!

แก้ยังไงคะ ขอบคุณค่ะ

zankumuro

ตรวจสอบ Username และ Password ของฐานข้อมูลให้ชัวร์หรือยังครับ
อย่าเชื่อผมมาก ผมมันมั่ว.....ฮ่าๆ

ฝาก Like แฟนเพจหน่อยครับ
https://www.facebook.com/devsignup

ข่าวสารวงการเกมส์ ทริปทริคต่างๆ เกมส์แจกฟรี
https://www.wecanplay.in.th/

online7

รับทำเว็บด้วย Wordpress
- รับติดตั้งและลงเว็บ Wordperss เริ่มต้น 200 บาท
- รับปรับแต่งและแก้ไขธีม Wordpress,SMF เริ่มต้น 400 บาท
- รับโมธีม Wordpress เริ่มต้น 700 บาท จำกัด 1 โดเมน : ไม่จำกัดโดเมน 1500 บาท

LovelyPony

อ้างถึงจาก: online7 ใน 02 ธันวาคม 2012, 17:25:12
แก้ path ในไฟลฺ index.php แล้วยังครับ

แก้ตรงไหนคะ เข้าไปดูแล้วไม่มีอะไรเกี่ยวข้องกับโดเมนเลย รบกวนแนะนำหน่อยนะคะ ขอบคุณมากค่ะ :wanwan017:

JeffyPluS

/accountName/domains/YourDomainName.com/public_html/config.php

อ้างถึง<?php
// DIR
define('DIR_APPLICATION', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/catalog/');
define('DIR_SYSTEM', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/');
define('DIR_DATABASE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/database/');
define('DIR_LANGUAGE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/catalog/language/');
define('DIR_TEMPLATE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/config/');
define('DIR_IMAGE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/image/');
define('DIR_CACHE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/download/');
define('DIR_LOGS', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/logs/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xxxxxxxxx');
define('DB_PASSWORD', 'xxxxxxxxx');
define('DB_DATABASE', 'xxxxxxxxx');
define('DB_PREFIX', 'xxxxxxxxx');
?>
[direct=https://evo.in.th/aff.php?aff=1][/direct]
เว็บ[direct=https://evohosting.in.th]โฮสติ้ง[/direct]แรง เร็ว เสถียร พร้อมดูแลทุกท่านคุณภาพการบริการเริ่มต้นเพียง 500.-/ปี
█ Tel 0810066690 | [direct=https://evo.in.th/store/vps-ssd]EVO VPS[/direct] | [direct=https://evo.in.th/store/extra-hosting]EVO Hosting[/direct]
█ [direct=https://evo.in.th/store/vps-hosting]VPS[/direct]Hosting ประสิทธิภาพสูง แรง เร็ว เสถียร
LineOA : @hosting

zankumuro

path DIR_SYSTEM ถูกกำหนดใน config.php แล้วครับ ไม่ต้องไปยุ่งกับ index

ลองดูตรง define('DIR_DATABASE', ''); ในไฟล์ config.php ว่าพาร์ทชี้ไปถูกต้องไหม ถ้าถูกต้อง ลองเข้าไปดูใน system/database ว่ามีไฟล์ mysql.php อยุ่หรือป่าว
อย่าเชื่อผมมาก ผมมันมั่ว.....ฮ่าๆ

ฝาก Like แฟนเพจหน่อยครับ
https://www.facebook.com/devsignup

ข่าวสารวงการเกมส์ ทริปทริคต่างๆ เกมส์แจกฟรี
https://www.wecanplay.in.th/

online7

รับทำเว็บด้วย Wordpress
- รับติดตั้งและลงเว็บ Wordperss เริ่มต้น 200 บาท
- รับปรับแต่งและแก้ไขธีม Wordpress,SMF เริ่มต้น 400 บาท
- รับโมธีม Wordpress เริ่มต้น 700 บาท จำกัด 1 โดเมน : ไม่จำกัดโดเมน 1500 บาท

LovelyPony

ลองเช็คดูแล้วก็ถูกต้องทุกอย่าง แต่ยังเข้าหน้า admin ไม่ได้เลยค่ะ ส่วนหน้าหลักเว็บเข้าได้ ใช้งานได้ตามปกติ  :-X

JeffyPluS

อ้างถึงจาก: JeffyPluS ใน 02 ธันวาคม 2012, 17:42:12
/accountName/domains/YourDomainName.com/public_html/config.php

อ้างถึง<?php
// DIR
define('DIR_APPLICATION', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/catalog/');
define('DIR_SYSTEM', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/');
define('DIR_DATABASE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/database/');
define('DIR_LANGUAGE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/catalog/language/');
define('DIR_TEMPLATE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/config/');
define('DIR_IMAGE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/image/');
define('DIR_CACHE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/download/');
define('DIR_LOGS', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/logs/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xxxxxxxxx');
define('DB_PASSWORD', 'xxxxxxxxx');
define('DB_DATABASE', 'xxxxxxxxx');
define('DB_PREFIX', 'xxxxxxxxx');
?>

ใน folder admin มี ไฟล์ config.php อีก ไฟล์ ครับ แก้ไขตามนี้เลยครับ
[direct=https://evo.in.th/aff.php?aff=1][/direct]
เว็บ[direct=https://evohosting.in.th]โฮสติ้ง[/direct]แรง เร็ว เสถียร พร้อมดูแลทุกท่านคุณภาพการบริการเริ่มต้นเพียง 500.-/ปี
█ Tel 0810066690 | [direct=https://evo.in.th/store/vps-ssd]EVO VPS[/direct] | [direct=https://evo.in.th/store/extra-hosting]EVO Hosting[/direct]
█ [direct=https://evo.in.th/store/vps-hosting]VPS[/direct]Hosting ประสิทธิภาพสูง แรง เร็ว เสถียร
LineOA : @hosting

LovelyPony

อ้างถึงจาก: JeffyPluS ใน 02 ธันวาคม 2012, 17:59:05
อ้างถึงจาก: JeffyPluS ใน 02 ธันวาคม 2012, 17:42:12
/accountName/domains/YourDomainName.com/public_html/config.php

อ้างถึง<?php
// DIR
define('DIR_APPLICATION', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/catalog/');
define('DIR_SYSTEM', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/');
define('DIR_DATABASE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/database/');
define('DIR_LANGUAGE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/catalog/language/');
define('DIR_TEMPLATE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/config/');
define('DIR_IMAGE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/image/');
define('DIR_CACHE', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/download/');
define('DIR_LOGS', '/home/xxxxxxxxx/domains/xxxxxxxxx/public_html/system/logs/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xxxxxxxxx');
define('DB_PASSWORD', 'xxxxxxxxx');
define('DB_DATABASE', 'xxxxxxxxx');
define('DB_PREFIX', 'xxxxxxxxx');
?>

ใน folder admin มี ไฟล์ config.php อีก ไฟล์ ครับ แก้ไขตามนี้เลยครับ

แก้แล้วอะค่ะ แต่ยังเหมือนเดิม  :P

JeffyPluS

ไฟล์ confif.php มี 2 ไฟล์ นะครับ แก้แล้ว ทั้งสอง ไฟล์ เลยใช่ไหมครับ
[direct=https://evo.in.th/aff.php?aff=1][/direct]
เว็บ[direct=https://evohosting.in.th]โฮสติ้ง[/direct]แรง เร็ว เสถียร พร้อมดูแลทุกท่านคุณภาพการบริการเริ่มต้นเพียง 500.-/ปี
█ Tel 0810066690 | [direct=https://evo.in.th/store/vps-ssd]EVO VPS[/direct] | [direct=https://evo.in.th/store/extra-hosting]EVO Hosting[/direct]
█ [direct=https://evo.in.th/store/vps-hosting]VPS[/direct]Hosting ประสิทธิภาพสูง แรง เร็ว เสถียร
LineOA : @hosting

LovelyPony

อ้างถึงจาก: JeffyPluS ใน 02 ธันวาคม 2012, 18:16:34
ไฟล์ confif.php มี 2 ไฟล์ นะครับ แก้แล้ว ทั้งสอง ไฟล์ เลยใช่ไหมครับ

ใช่ค่ะ แก้แล้วทั้ง 2 ไฟล์ค่ะ

JeffyPluS

อ้างถึงจาก: LovelyPony ใน 02 ธันวาคม 2012, 18:32:34
อ้างถึงจาก: JeffyPluS ใน 02 ธันวาคม 2012, 18:16:34
ไฟล์ confif.php มี 2 ไฟล์ นะครับ แก้แล้ว ทั้งสอง ไฟล์ เลยใช่ไหมครับ

ใช่ค่ะ แก้แล้วทั้ง 2 ไฟล์ค่ะ

PM เว็บ มาให้ช่วยดู ได้ไหมครับ
[direct=https://evo.in.th/aff.php?aff=1][/direct]
เว็บ[direct=https://evohosting.in.th]โฮสติ้ง[/direct]แรง เร็ว เสถียร พร้อมดูแลทุกท่านคุณภาพการบริการเริ่มต้นเพียง 500.-/ปี
█ Tel 0810066690 | [direct=https://evo.in.th/store/vps-ssd]EVO VPS[/direct] | [direct=https://evo.in.th/store/extra-hosting]EVO Hosting[/direct]
█ [direct=https://evo.in.th/store/vps-hosting]VPS[/direct]Hosting ประสิทธิภาพสูง แรง เร็ว เสถียร
LineOA : @hosting

JeffyPluS

ที่เดิม กับที่ใหม่ ใช้ user name ตัวเดียวกันหรือไม่ครับ

ถ้าไม่ใช่ แนะนำอีกนิดให้ ตรวจสอบ เรื่องของ mysql ต่าง ๆ ให้ ชัวร์ นะครับ ว่า ได้แก้ไข ให้เป็นไปตามโฮสติ้งที่ใหม่แล้ว
[direct=https://evo.in.th/aff.php?aff=1][/direct]
เว็บ[direct=https://evohosting.in.th]โฮสติ้ง[/direct]แรง เร็ว เสถียร พร้อมดูแลทุกท่านคุณภาพการบริการเริ่มต้นเพียง 500.-/ปี
█ Tel 0810066690 | [direct=https://evo.in.th/store/vps-ssd]EVO VPS[/direct] | [direct=https://evo.in.th/store/extra-hosting]EVO Hosting[/direct]
█ [direct=https://evo.in.th/store/vps-hosting]VPS[/direct]Hosting ประสิทธิภาพสูง แรง เร็ว เสถียร
LineOA : @hosting

LovelyPony

อ้างถึงจาก: JeffyPluS ใน 02 ธันวาคม 2012, 18:43:50
ที่เดิม กับที่ใหม่ ใช้ user name ตัวเดียวกันหรือไม่ครับ

ถ้าไม่ใช่ แนะนำอีกนิดให้ ตรวจสอบ เรื่องของ mysql ต่าง ๆ ให้ ชัวร์ นะครับ ว่า ได้แก้ไข ให้เป็นไปตามโฮสติ้งที่ใหม่แล้ว

PM ไปแล้วนะคะ ขอบคุณมากค่ะ  :wanwan017:

hotth

ย้ายโฮสแล้วแต่ว่าเปลี่ยนโดเมนใหม่หรือเปล่าครับถ้าเปลี่ยนโดเมนใหม่ต้องทำการเปลี่ยนแปลงข้อมูลในดาต้าเบสด้วยครับ

jansee

ทำ IM ดิ

Amazon ไม่ใช่พ่อ แต่กูก็ง้อ

pyopyo

แก้ 2 ไฟล์ตามกี่แก้มาครับ รีเช็คอีกรอบ
config.php และ admin/config.php