그누보드 설치 시 오류가 나면서 data 폴더 안에 파일 생성이 안됩니다.

그누보드 설치 시 오류가 나면서 data 폴더 안에 파일 생성이 안됩니다.

QA

그누보드 설치 시 오류가 나면서 data 폴더 안에 파일 생성이 안됩니다.

본문

아래와 같은 오류가 발생하고 sql 내에 테이블 생성은 되는데 data 폴더 안에 아무것도 생성되는게 없네요 ㅠㅠ dbconfig 파일도 안생기고 사이트 접속 하면 다시 설치하는 것으로 무한 반복 중인데 자체서버에 그누보드 설치하려니 머리 아프네요 ㅠㅠ

 

  1. Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 577

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 578

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 579

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 580

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 581

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 582

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 583

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 584

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 585

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 586

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 587

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 588

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 589

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 590

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 591

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 592

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 593

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 594

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 595

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 596

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 597

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 598

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 599

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 600

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 601

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 602

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 603

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 604

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 605

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 606

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 607

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 608

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 609

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 610

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 611

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 612

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 613

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 614

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 615

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 616

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 617

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 649

    Warning: fclose() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 651
  2. DB설정 파일 생성 완료 (../data/dbconfig.php)
  3. Warning: fopen(../data/.htaccess): failed to open stream: Permission denied in /home/laladent/public_html/install/install_db.php on line 659

    Warning: fwrite() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 667

    Warning: fclose() expects parameter 1 to be resource, bool given in /home/laladent/public_html/install/install_db.php on line 668

이 질문에 댓글 쓰기 :

답변 5

/data 폴더에 dbconfig.php 파일 쓰기 권한이 없어서 생긴 오류입니다.

data 폴더의 쓰기 권한에, 웹서버 유저의 쓰기 권한이 있어야 됩니다.

통상적으로는 data 폴더에 707 권한을 주면 됩니다.

data 폴더에 707 권한을 주었는데도 해당 오류가 생긴 것이라면,

해결방법이 쉽지 않을 수 있습니다.

https://sir.kr/g5_pds 여기서 다운받아서 다시설치해보세요

 

지금보면 폴더 권한이 없어서그런듯 합니다. 기본 폴더권한 755 가맞는 지 확인해주시구 data 폴더또한 707이 맞는지 다시확인해보시기바랍니다.. ....  주소줘보세요 봐드릴게요

참고하세요.

##################

원인: PHP의 `fwrite()` 함수가 리소스가 아닌 `bool` 값을 받고 있습니다. 이는 일반적으로 파일을 열 때 발생하는 권한 문제로 인한 것입니다.

 

1. 파일 권한 확인

`data` 폴더와 그 안에 있는 모든 파일 및 폴더에 올바른 권한이 있는지 확인합니다. 일반적으로 다음과 같은 권한이 필요합니다.

drwxr-xr-x 폴더

-rw-r--r-- 파일

2. PHP 설정 확인

`php.ini` 파일에서 `open_basedir` 설정이 `data` 폴더에 대한 쓰기 액세스를 제한하지 않는지 확인합니다.

3. 웹 서버 설정 확인

웹 서버(예: Apache 또는 Nginx)가 `data` 폴더에 대한 쓰기 액세스를 허용하도록 구성되었는지 확인합니다.

4. 파일 시스템 권한 확인

파일 시스템 자체에 `data` 폴더에 대한 쓰기 액세스를 제한하는 권한이 있는지 확인합니다.

5. 안티바이러스 소프트웨어 비활성화

일부 안티바이러스 소프트웨어는 설치 프로세스 중에 파일 생성을 차단할 수 있습니다. 설치 중에 안티바이러스 소프트웨어를 일시적으로 비활성화해 보십시오.

6. 다른 사용자로 설치

루트 또는 다른 사용자 계정으로 설치를 시도해 보십시오. 이를 통해 권한 문제를 해결할 수 있습니다.

7. 수동으로 파일 생성

`data` 폴더에 필요한 파일을 수동으로 생성하고 올바른 권한을 설정해 보십시오.

왠지 selinux 문제 같아 보이는데....

 

  1. SELinux 설정 파일을 편집기로 연다.

    RHEL/CentOS 8

    vi /etc/selinux/config

    Copy

    BASH

    RHEL/CentOS 7 이전

    vi /etc/sysconfig/selinux

    Copy

    BASH

  2. SELINUX=enforcing 을 SELINUX=disabled 로 변경후 저장한다.

    SELINUX=disabled

    Copy

    CODE

  3. reboot

warning-macro-icon.svg

SELinux 를 해제후 다시 켤 경우 relabel 이 필요하며 이때 잘못된 설정이 있을 경우 부팅이 안 되거나 ssh 로 원격 접속이 불가능할 수 있으므로 enforcing 모드가 아닌 permissive 로 설정후 재부팅하는 것을 권장

답변을 작성하시기 전에 로그인 해주세요.
전체 4
QA 내용 검색

회원로그인

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