우성짱님의 도커로 멀티도메인구성후 로그인 안되는현상~
본문
에러메세지가.
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 메시지로 인한 부작용은 막을 수 있습니다.
답변을 작성하시기 전에 로그인 해주세요.