경험치바 설치중에 오류 생겨 습니다. HelpMe!! 정보
경험치바 설치중에 오류 생겨 습니다. HelpMe!!
본문
사이트 indel.php 초기화면에 아래 내용의 오류페이가 뜹니다.
Warning: include_once(./dbconfig.php) [function.include-once]: failed to open stream: Permission denied in /web/home/okmusic/html/common.php on line 254
Warning: include_once() [function.include]: Failed opening './dbconfig.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/okmusic/html/common.php on line 254
그래서 common.php on line 254 번호 살펴 봤습니다.
[line]
[245]//==============================================================================
[246]// 공통
[247]//==============================================================================
[248]$dirname = dirname(__FILE__).'/';
[249]$dbconfig_file = "dbconfig.php";
[250]if (file_exists("$g4[path]/$dbconfig_file"))
[251]{
[252] if (is_dir("$g4[path]/install")) die("<meta http-equiv='content-type' content='text/html; c[252]harset=$g4[charset]'><script language='JavaScript'> alert('install 디렉토리를 삭제하여야 [252]정상 실행됩니다.'); </script>");
[253]
[254] include_once("$g4[path]/$dbconfig_file");
[255] $connect_db = sql_connect($mysql_host, $mysql_user, $mysql_password);
[256] $select_db = sql_select_db($mysql_db, $connect_db);
[257] if (!$select_db)
[258] die("<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'><scr[259]ipt language='JavaScript'> alert('DB 접속 오류'); </script>");
[259]}
[260]else
[261]{
[262] echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
[263] echo <<<HEREDOC
[264] <script language="JavaScript">
[265] alert("DB 설정 파일이 존재하지 않습니다.\\n\\n프로그램 설치 후 실행하시기 바랍니 [265]다.");
[266] location.href = "./install/";
[267] </script>
[268]HEREDOC;
[269] exit;
[270]}
살펴 봐도 잘모르겠습니다.
Warning: include_once(./dbconfig.php) [function.include-once]: failed to open stream: Permission denied in /web/home/okmusic/html/common.php on line 254
Warning: include_once() [function.include]: Failed opening './dbconfig.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/okmusic/html/common.php on line 254
그래서 common.php on line 254 번호 살펴 봤습니다.
[line]
[245]//==============================================================================
[246]// 공통
[247]//==============================================================================
[248]$dirname = dirname(__FILE__).'/';
[249]$dbconfig_file = "dbconfig.php";
[250]if (file_exists("$g4[path]/$dbconfig_file"))
[251]{
[252] if (is_dir("$g4[path]/install")) die("<meta http-equiv='content-type' content='text/html; c[252]harset=$g4[charset]'><script language='JavaScript'> alert('install 디렉토리를 삭제하여야 [252]정상 실행됩니다.'); </script>");
[253]
[254] include_once("$g4[path]/$dbconfig_file");
[255] $connect_db = sql_connect($mysql_host, $mysql_user, $mysql_password);
[256] $select_db = sql_select_db($mysql_db, $connect_db);
[257] if (!$select_db)
[258] die("<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'><scr[259]ipt language='JavaScript'> alert('DB 접속 오류'); </script>");
[259]}
[260]else
[261]{
[262] echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
[263] echo <<<HEREDOC
[264] <script language="JavaScript">
[265] alert("DB 설정 파일이 존재하지 않습니다.\\n\\n프로그램 설치 후 실행하시기 바랍니 [265]다.");
[266] location.href = "./install/";
[267] </script>
[268]HEREDOC;
[269] exit;
[270]}
살펴 봐도 잘모르겠습니다.
댓글 전체
include_once("$g4[path]/$dbconfig_file"); 이부분이 오류인데요..
오류 메시지에서 보여주는 내용은 dbcomfig_file에 사용권한이 없다는 오류 메시지 입니다.
해당 파일의 사용권한을 바꿔주세요.. chmod가 사용권한 변경 명령어입니다.
오류 메시지에서 보여주는 내용은 dbcomfig_file에 사용권한이 없다는 오류 메시지 입니다.
해당 파일의 사용권한을 바꿔주세요.. chmod가 사용권한 변경 명령어입니다.
답변 감사 합니다.