안녕하세요
카페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님의 답변덕분에 잘 해결했습니다.
감사합니다^^
감사합니다^^
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8030 | 9년 전 | 350 | ||
| 8029 | 9년 전 | 283 | ||
| 8028 | 9년 전 | 252 | ||
| 8027 | 9년 전 | 263 | ||
| 8026 | 9년 전 | 305 | ||
| 8025 | 9년 전 | 365 | ||
| 8024 | 9년 전 | 329 | ||
| 8023 | 9년 전 | 379 | ||
| 8022 | 9년 전 | 307 | ||
| 8021 | 9년 전 | 309 | ||
| 8020 | 9년 전 | 306 | ||
| 8019 | 9년 전 | 327 | ||
| 8018 | 9년 전 | 429 | ||
| 8017 | 9년 전 | 525 | ||
| 8016 | 9년 전 | 316 | ||
| 8015 | 9년 전 | 380 | ||
| 8014 | 9년 전 | 311 | ||
| 8013 | 9년 전 | 225 | ||
| 8012 | 9년 전 | 236 | ||
| 8011 | 9년 전 | 435 | ||
| 8010 | 9년 전 | 287 | ||
| 8009 | 9년 전 | 273 | ||
| 8008 | 9년 전 | 275 | ||
| 8007 | 9년 전 | 417 | ||
| 8006 | 9년 전 | 454 | ||
| 8005 |
|
9년 전 | 954 | |
| 8004 | 9년 전 | 338 | ||
| 8003 | 9년 전 | 409 | ||
| 8002 | 9년 전 | 316 | ||
| 8001 |
|
9년 전 | 655 | |
| 8000 | 9년 전 | 400 | ||
| 7999 | 9년 전 | 361 | ||
| 7998 | 9년 전 | 413 | ||
| 7997 | 9년 전 | 303 | ||
| 7996 | 9년 전 | 529 | ||
| 7995 | 9년 전 | 439 | ||
| 7994 | 9년 전 | 280 | ||
| 7993 | 9년 전 | 361 | ||
| 7992 | 9년 전 | 498 | ||
| 7991 | 9년 전 | 236 | ||
| 7990 | 9년 전 | 260 | ||
| 7989 | 9년 전 | 291 | ||
| 7988 | 9년 전 | 716 | ||
| 7987 | 9년 전 | 409 | ||
| 7986 | 9년 전 | 399 | ||
| 7985 | 9년 전 | 495 | ||
| 7984 | 9년 전 | 420 | ||
| 7983 | 9년 전 | 640 | ||
| 7982 | 9년 전 | 501 | ||
| 7981 | 9년 전 | 447 | ||
| 7980 | 9년 전 | 473 | ||
| 7979 | 9년 전 | 449 | ||
| 7978 | 9년 전 | 427 | ||
| 7977 | 9년 전 | 365 | ||
| 7976 | 9년 전 | 835 | ||
| 7975 | 9년 전 | 353 | ||
| 7974 | 9년 전 | 382 | ||
| 7973 | 9년 전 | 583 | ||
| 7972 | 9년 전 | 370 | ||
| 7971 | 9년 전 | 442 | ||
| 7970 | 9년 전 | 284 | ||
| 7969 | 9년 전 | 530 | ||
| 7968 | 9년 전 | 369 | ||
| 7967 | 9년 전 | 351 | ||
| 7966 | 9년 전 | 354 | ||
| 7965 |
|
9년 전 | 1003 | |
| 7964 | 9년 전 | 389 | ||
| 7963 | 9년 전 | 374 | ||
| 7962 | 9년 전 | 360 | ||
| 7961 |
전갈자리남자
|
9년 전 | 499 | |
| 7960 | 9년 전 | 948 | ||
| 7959 | 9년 전 | 540 | ||
| 7958 | 9년 전 | 396 | ||
| 7957 | 9년 전 | 358 | ||
| 7956 | 9년 전 | 364 | ||
| 7955 | 9년 전 | 431 | ||
| 7954 | 9년 전 | 354 | ||
| 7953 | 9년 전 | 417 | ||
| 7952 | 9년 전 | 340 | ||
| 7951 | 9년 전 | 486 | ||
| 7950 | 9년 전 | 373 | ||
| 7949 | 9년 전 | 380 | ||
| 7948 | 9년 전 | 314 | ||
| 7947 | 9년 전 | 918 | ||
| 7946 | 9년 전 | 409 | ||
| 7945 | 9년 전 | 378 | ||
| 7944 | 9년 전 | 385 | ||
| 7943 | 9년 전 | 358 | ||
| 7942 | 9년 전 | 394 | ||
| 7941 | 9년 전 | 379 | ||
| 7940 | 9년 전 | 868 | ||
| 7939 | 9년 전 | 320 | ||
| 7938 | 9년 전 | 362 | ||
| 7937 | 9년 전 | 262 | ||
| 7936 | 9년 전 | 867 | ||
| 7935 | 9년 전 | 426 | ||
| 7934 | 9년 전 | 393 | ||
| 7933 | 9년 전 | 468 | ||
| 7932 | 9년 전 | 451 | ||
| 7931 | 9년 전 | 505 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기