우성짱님의 도커로 멀티도메인구성후 로그인 안되는현상~

우성짱님의 도커로 멀티도메인구성후 로그인 안되는현상~

QA

우성짱님의 도커로 멀티도메인구성후 로그인 안되는현상~

본문

에러메세지가.

2021/06/22 16:26:43 [error] 23#23: *1 FastCGI sent in stderr: "PHP message: PHP Warning:  chmod(): Operation not permitted in /var/www/html/gnuboard/lib/Cache/FileCache.class.php on line 156" while reading response header from upstream, client: 172.27.0.1, server: g5.localhost, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://172.27.0.8:9000", host: "g5.localhost"

 

와같이 나고 로그인이 안되네요~~

해당소스는 lib/Cache/FileCache.class.php의


        if ($this->write_file($cache_file_path, $cache_content))
        {
            chmod($cache_file_path, G5_FILE_PERMISSION);
            return TRUE;
        }

nginx의 그누보드설정파일은 


server {
        listen 80;
        listen [::]:80;
 
        server_name g5.localhost;
        root /var/www/html/gnuboard;
        index  index.php index.html;
 
    location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }
 
    location ~ [^/]\.php(/|$) {
        fastcgi_pass php:9000;
        fastcgi_index index.php;    
        fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include       fastcgi_params;
    }
}

이 질문에 댓글 쓰기 :

답변 2

data/cache 폴더 퍼미션 확인해 보세요.

/lib/Cache/FileCache.class.php on line 156

여기 보시면

                        chmod($cache_file_path, G5_FILE_PERMISSION);
로 되어 있습니다.

                        @chmod($cache_file_path, G5_FILE_PERMISSION);

이렇게 변경해 보세요.
permission 문제는 해결이 안 되지만 warning 메시지로 인한 부작용은 막을 수 있습니다.

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

회원로그인

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