로그아웃&관리자모드 화면이 오류가 나요 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

로그아웃&관리자모드 화면이 오류가 나요 정보

로그아웃&관리자모드 화면이 오류가 나요

본문

로그아웃 할 때나 관리자 모드(ex. http://annanstar.mireene.com/gnuboard4)
에 들어가면


Warning
: main(./gnuboard4/common.php): failed to open stream: No such file or directory
in /web/home/annanstar/html/gnuboard4/_common.php on line 3

Warning: main(): Failed opening './gnuboard4/common.php' for inclusion
 (include_path='.:/usr/lib/php/pear')
in /web/home/annanstar/html/gnuboard4/_common.php on line 3

Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory
in /web/home/annanstar/html/gnuboard4/index.php on line 3

Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion
(include_path='.:/usr/lib/php/pear')
in /web/home/annanstar/html/gnuboard4/index.php on line 3

이런 오류가 납니다. 해결법을 아시는 분은 꼭좀 알려주세요ㅠ 테스트아이디가 필요하시면
덧글로 알려주시구요ㅠㅠ
태그로 로그인창을 달았는데 그때 아웃로그인 태그는 나모웹에디터의 인덱스파일 최상단에
(<html> 위에)

<?
include_once("./gnuboard4/_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>

이거 사용했구요, 원하는 곳에

<?echo outlogin("vozzang_line"); ?>
이 태그를 사용해서 아웃로그인창 삽입했습니다.

그리구,
_common.php는 이렇게 수정했습니다

<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>

퍼미션은 gnuboard4폴더 통째로 777로 설정했습니다. 모든파일에 적용 체크 해서요.
 잘못 설정한 게 있다면 말씀해주세요ㅠ

+)
다른분들이 설명해주시는건 html파일로 저장하지 말고 php파일로 저장하라는데
저는 인덱스에 아웃로그인창을 넣을거라서 그렇게 되면
아예 인덱스 자체를 php로 저장하라고 말씀하시는건지 모르겠네요. 제가 말한게 맞나요?

댓글 전체

gnuboard4/_common.php 파일을 아래와 같이 수정합니다.
===================================================
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
===================================================


gnuboard4/index.php 파일 상단은 이렇게 수정합니다.
===================================================
<?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>
===================================================


+) 네. 인덱스 자체를 php로 저장하라고 말씀하시는 겁니다.
그런데 갑자기 또 홈페이지가 안들어가지네요. DB오류라는데ㅠㅠㅠㅠㅠ

Warning: main(./gnuboard4/dbconfig.php): failed to open stream: Permission denied in /web/home/annanstar/html/gnuboard4/common.php on line 169

Warning: main(): Failed opening './gnuboard4/dbconfig.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/annanstar/html/gnuboard4/common.php on line 169
gnuboard4 폴더에 _common.php 파일을 만들어주세요. 내용은 아래와 같이 넣어주시구요.
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>


퍼미션은 646으로 주세요
퍼미션 수정했더니 이런오류가 뜹니다.

홈페이지 최상단엔

Warning: main(./_common.php): failed to open stream: No such file or directory in /web/home/annanstar/html/index.php on line 2

Warning: main(): Failed opening './_common.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/annanstar/html/index.php on line 2

Warning: main(/lib/outlogin.lib.php): failed to open stream: No such file or directory in /web/home/annanstar/html/index.php on line 3

Warning: main(): Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/annanstar/html/index.php on line 3


로그인폼 부분에는

Fatal error: Call to undefined function: outlogin() in /web/home/annanstar/html/index.php on line 21
하지만 위의 태그를
<?
include_once("./gnuboard4/_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>



_common을


<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>


이렇게 수정한다면


Warning: dir(./gnuboard4/extend): failed to open dir: Permission denied in /web/home/annanstar/html/gnuboard4/common.php on line 435

Fatal error: Call to a member function on a non-object in /web/home/annanstar/html/gnuboard4/common.php on line 436

Warning: Unknown(): open(./gnuboard4/data/session/sess_f85364ede8d188211a321b70ee10ccc4, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (./gnuboard4/data/session) in Unknown on line 0

이렇게 뜰 뿐입니다.
루트디렉토리에 _common.php 파일을 만들어주세요. 내용은 아래와 같습니다.
===================================================
<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
===================================================
Warning: dir(./gnuboard4/extend): failed to open dir: Permission denied in /web/home/annanstar/html/gnuboard4/common.php on line 435

Fatal error: Call to a member function on a non-object in /web/home/annanstar/html/gnuboard4/common.php on line 436

Warning: Unknown(): open(./gnuboard4/data/session/sess_f85364ede8d188211a321b70ee10ccc4, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (./gnuboard4/data/session) in Unknown on line 0


이렇게 뜹니다.
생 초보라 아무것도 아는 게 없어 수고스러우시겠지만 조금만 더 도와주세요^ㅠ^
gnuboard4/extend 폴더에 권한을 변경해주세요. 707로 주시면 됩니다.
gnuboard4/data 폴더에 권한을 변경해주세요. 707로 주시면 됩니다.
gnuboard4/data 이하 폴더도 똑같이 707로 주세요.
설정 해도 여전히ㅠㅠㅠ


Warning: dir(./gnuboard4/extend): failed to open dir: Permission denied in /web/home/annanstar/html/gnuboard4/common.php on line 435

Fatal error: Call to a member function on a non-object in /web/home/annanstar/html/gnuboard4/common.php on line 436

Warning: Unknown(): open(./gnuboard4/data/session/sess_f85364ede8d188211a321b70ee10ccc4, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (./gnuboard4/data/session) in Unknown on line 0
역시나..


Warning: main(./gnuboard4/common.php): failed to open stream: No such file or directory in /web/home/annanstar/html/gnuboard4/_common.php on line 3

Warning: main(): Failed opening './gnuboard4/common.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/annanstar/html/gnuboard4/_common.php on line 3

Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /web/home/annanstar/html/gnuboard4/index.php on line 3

Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/annanstar/html/gnuboard4/index.php on line 3

뭐가 잘못되었어도 단단히 잘못되었나보네요. 더이상 해결방법을 모르신다면 알려주지 않으셔도 괜찮습니다. 계정 없애고 새로 만들던가 해야겠네요..

빨간색은.. 홈페이지 말씀인가요? 그냥 크리스마스라 그래봤습니다.ㅋ
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT