안녕하세요
카페24웹호스팅이랑 비아웹호스팅의 서버차이가 있습니까? ㅠㅠ
한달전까지 카페24웹호스팅(PHP)에서 쓰고 있는 PHP(쇼핑몰)를 잘 나왔는데..
비아웹호스팅(PHP)으로 서버이전을 하고나서 해보니 뭔가 잘못되어있습니다.
메인화면은 그냥 빈페이지처럼 나오고 있습니다.
아래의 소스를 보면 아무이상이 없는것같습니다..서버가 달라서 그런거죠? 아님 상관없어요?
DB아이디, DB비번, DB명도 다 고쳤는데도..;;
도와주세요 ㅠㅠㅠ
--------------------------------------------------------------------
index.php 파일입니다.
-------------------
<?
// 기본 클래스 불러오기
include('./common.php');
// 관리자 정보 불러오기
$admin_stat = $db->object("cs_admin", "", "shop_url,shop_domain");
$design_stat = $db->object("cs_design", "");
$db->insert("cs_connect", "ip='$_SERVER[REMOTE_ADDR]', url='$_SERVER[HTTP_REFERER]', register=now()");
?>
<html>
<head>
<title><?=$design_stat->title_bar;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<!--
<link rel="SHORTCUT ICON" href="http://<?=$admin_stat->shop_domain;?>/data/designImages/<?=$design_stat->ico;?>">
-->
</head>
<script language="JavaScript">
<!--
window.status='<?=$design_stat->status_bar;?>';
-->
</script>
<frameset rows="0,*" frameborder="NO" border="0" framespacing="0">
<frame src="nohtml.php" name="" scrolling="NO" noresize>
<? if($admin_stat->shop_url) {?><frame src="http://<?=$admin_stat->shop_url;?>/index.php" name="main"><?}?>
</frameset>
<noframes></noframes>
<!-- 리포트2.0 로그분석코드 시작 -->
<script type="text/javascript">
var JsHost = (("https:" == document.location.protocol) ? "https://" : "http://");
var uname = escape("토니헬스");
document.write(unescape("%3Cscript id='log_script' src='" + JsHost + "jplanscom.weblog.cafe24.com/weblog.js?uid=jplanscom_1&uname="+uname+"' type='text/javascript'%3E%3C/script%3E"));
</script>
<!-- 리포트2.0 로그분석코드 완료 -->
include('./common.php');
// 관리자 정보 불러오기
$admin_stat = $db->object("cs_admin", "", "shop_url,shop_domain");
$design_stat = $db->object("cs_design", "");
$db->insert("cs_connect", "ip='$_SERVER[REMOTE_ADDR]', url='$_SERVER[HTTP_REFERER]', register=now()");
?>
<html>
<head>
<title><?=$design_stat->title_bar;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<!--
<link rel="SHORTCUT ICON" href="http://<?=$admin_stat->shop_domain;?>/data/designImages/<?=$design_stat->ico;?>">
-->
</head>
<script language="JavaScript">
<!--
window.status='<?=$design_stat->status_bar;?>';
-->
</script>
<frameset rows="0,*" frameborder="NO" border="0" framespacing="0">
<frame src="nohtml.php" name="" scrolling="NO" noresize>
<? if($admin_stat->shop_url) {?><frame src="http://<?=$admin_stat->shop_url;?>/index.php" name="main"><?}?>
</frameset>
<noframes></noframes>
<!-- 리포트2.0 로그분석코드 시작 -->
<script type="text/javascript">
var JsHost = (("https:" == document.location.protocol) ? "https://" : "http://");
var uname = escape("토니헬스");
document.write(unescape("%3Cscript id='log_script' src='" + JsHost + "jplanscom.weblog.cafe24.com/weblog.js?uid=jplanscom_1&uname="+uname+"' type='text/javascript'%3E%3C/script%3E"));
</script>
<!-- 리포트2.0 로그분석코드 완료 -->
</body>
</html>
--------------------------------------------------------------------
config.php 파일입니다.
-------------------
$DB_HOST="localhost";
$DB_USER="DB아이디";
$DB_PWD="DB비번";
$DB_NAME="DB명";
$DB_USER="DB아이디";
$DB_PWD="DB비번";
$DB_NAME="DB명";
$ROOT_DIR="/home/hosting_users/DB명/www/shop/";
---> 원래 카페24웹호스팅에서 그렇게 사용했는데..
$DB_HOST="localhost";
$DB_USER="DB아이디";
$DB_PWD="DB비번";
$DB_NAME="DB명";
$DB_USER="DB아이디";
$DB_PWD="DB비번";
$DB_NAME="DB명";
$ROOT_DIR="/home/DB명/html";
---> 바이웹호스팅으로 이전해서 이렇게 수정했습니다...
왜 그렇게 잘 안되었습니까?
댓글 2개
xkingcode
13년 전
권한이나 IP방화벽이나 서비스 등의 문제로 DB접속이 안되고 있을 가능성이 아주 높아보이지만
에러 로그라도 확인하셔야 원인을 찾죠
/var/log/에서 apache 에러 로그 확인하시거나
호스팅이라 로그 접근에 문제가 있다면 다른 폴더에서 로그 남기도록 설정 변경하시고요
아니면 error_reporting 수정해서 그냥 빈 페이지가 아니라 에러 뜨고 죽게 해보시거나요
에러 로그라도 확인하셔야 원인을 찾죠
/var/log/에서 apache 에러 로그 확인하시거나
호스팅이라 로그 접근에 문제가 있다면 다른 폴더에서 로그 남기도록 설정 변경하시고요
아니면 error_reporting 수정해서 그냥 빈 페이지가 아니라 에러 뜨고 죽게 해보시거나요
13년 전
xkingcode님의 답변덕분에 잘 해결했습니다.
감사합니다^^
감사합니다^^
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6630 |
차가운바람
|
12년 전 | 1174 | |
| 6629 | 12년 전 | 1171 | ||
| 6628 |
put777
|
12년 전 | 653 | |
| 6627 |
|
12년 전 | 708 | |
| 6626 | 12년 전 | 1622 | ||
| 6625 |
|
12년 전 | 729 | |
| 6624 |
미켈란젤로의왼손
|
12년 전 | 496 | |
| 6623 |
|
12년 전 | 1056 | |
| 6622 | 12년 전 | 1405 | ||
| 6621 |
차가운바람
|
12년 전 | 645 | |
| 6620 | 12년 전 | 746 | ||
| 6619 |
|
12년 전 | 983 | |
| 6618 | 12년 전 | 1753 | ||
| 6617 | 12년 전 | 647 | ||
| 6616 |
차가운바람
|
12년 전 | 907 | |
| 6615 | 12년 전 | 2861 | ||
| 6614 | 12년 전 | 623 | ||
| 6613 |
강명구베드로
|
12년 전 | 536 | |
| 6612 |
|
12년 전 | 435 | |
| 6611 | 12년 전 | 1215 | ||
| 6610 | 12년 전 | 1036 | ||
| 6609 | 12년 전 | 3686 | ||
| 6608 |
|
12년 전 | 835 | |
| 6607 | 12년 전 | 702 | ||
| 6606 | 12년 전 | 570 | ||
| 6605 | 12년 전 | 462 | ||
| 6604 | 12년 전 | 980 | ||
| 6603 |
geektoo
|
12년 전 | 714 | |
| 6602 | 12년 전 | 850 | ||
| 6601 | 12년 전 | 375 | ||
| 6600 | 12년 전 | 423 | ||
| 6599 | 12년 전 | 574 | ||
| 6598 | 12년 전 | 956 | ||
| 6597 | 12년 전 | 954 | ||
| 6596 | 12년 전 | 440 | ||
| 6595 | 12년 전 | 797 | ||
| 6594 | 12년 전 | 4579 | ||
| 6593 | 12년 전 | 2583 | ||
| 6592 | 12년 전 | 836 | ||
| 6591 | 12년 전 | 599 | ||
| 6590 |
|
12년 전 | 1410 | |
| 6589 | 12년 전 | 781 | ||
| 6588 |
GINUSSOFT
|
12년 전 | 5136 | |
| 6587 | 12년 전 | 6223 | ||
| 6586 | 12년 전 | 1057 | ||
| 6585 | 12년 전 | 815 | ||
| 6584 | 12년 전 | 477 | ||
| 6583 |
|
12년 전 | 993 | |
| 6582 | 12년 전 | 884 | ||
| 6581 | 12년 전 | 859 | ||
| 6580 | 12년 전 | 627 | ||
| 6579 |
알랑가몰라
|
12년 전 | 944 | |
| 6578 | 12년 전 | 1341 | ||
| 6577 | 12년 전 | 1515 | ||
| 6576 |
경dragon
|
12년 전 | 786 | |
| 6575 | 12년 전 | 1899 | ||
| 6574 | 12년 전 | 698 | ||
| 6573 | 12년 전 | 1002 | ||
| 6572 |
|
12년 전 | 1683 | |
| 6571 |
CTOMAN
|
12년 전 | 1979 | |
| 6570 | 12년 전 | 1743 | ||
| 6569 | 12년 전 | 1902 | ||
| 6568 | 12년 전 | 2415 | ||
| 6567 | 12년 전 | 1037 | ||
| 6566 |
lainfox
|
12년 전 | 1541 | |
| 6565 | 12년 전 | 3667 | ||
| 6564 |
제주프라이스
|
12년 전 | 1545 | |
| 6563 | 12년 전 | 1580 | ||
| 6562 |
프로프리랜서
|
12년 전 | 1362 | |
| 6561 |
프로프리랜서
|
12년 전 | 983 | |
| 6560 |
프로프리랜서
|
12년 전 | 1242 | |
| 6559 |
프로프리랜서
|
12년 전 | 1153 | |
| 6558 |
프로프리랜서
|
12년 전 | 1367 | |
| 6557 |
프로프리랜서
|
12년 전 | 1990 | |
| 6556 |
프로프리랜서
|
12년 전 | 1533 | |
| 6555 |
프로프리랜서
|
12년 전 | 1376 | |
| 6554 |
프로프리랜서
|
12년 전 | 3901 | |
| 6553 |
프로프리랜서
|
12년 전 | 1523 | |
| 6552 | 12년 전 | 859 | ||
| 6551 |
왕초보sasa
|
12년 전 | 1553 | |
| 6550 |
왕초보sasa
|
12년 전 | 649 | |
| 6549 |
왕초보sasa
|
12년 전 | 919 | |
| 6548 | 12년 전 | 1311 | ||
| 6547 | 12년 전 | 1206 | ||
| 6546 | 12년 전 | 5173 | ||
| 6545 | 12년 전 | 2529 | ||
| 6544 |
AnnieK
|
12년 전 | 1794 | |
| 6543 |
베르무트7
|
12년 전 | 661 | |
| 6542 |
오늘도망했다
|
12년 전 | 2244 | |
| 6541 | 12년 전 | 825 | ||
| 6540 | 12년 전 | 1148 | ||
| 6539 | 12년 전 | 859 | ||
| 6538 |
senseme
|
12년 전 | 3384 | |
| 6537 | 12년 전 | 786 | ||
| 6536 | 12년 전 | 3675 | ||
| 6535 | 12년 전 | 1361 | ||
| 6534 | 12년 전 | 1632 | ||
| 6533 | 12년 전 | 2257 | ||
| 6532 |
냐옹이사범
|
12년 전 | 2315 | |
| 6531 | 12년 전 | 576 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기