우성짱님의 도커로 멀티도메인구성후 로그인 안되는현상~ 채택완료
에러메세지가.
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의
</p>
<p> if ($this->write_file($cache_file_path, $cache_content))</p>
<p> {</p>
<p> chmod($cache_file_path, G5_FILE_PERMISSION);</p>
<p> return TRUE;</p>
<p> }</p>
<p>
nginx의 그누보드설정파일은
</p>
<p>server {</p>
<p> listen 80;</p>
<p> listen [::]:80;</p>
<p> </p>
<p> server_name g5.localhost;</p>
<p> root /var/www/html/gnuboard;</p>
<p> index index.php index.html;</p>
<p> </p>
<p> location / {</p>
<p> try_files $uri $uri/ /index.php$is_args$args;</p>
<p> }</p>
<p> </p>
<p> location ~ [^/]\.php(/|$) {</p>
<p> fastcgi_pass php:9000;</p>
<p> fastcgi_index index.php; </p>
<p> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</p>
<p> include fastcgi_params;</p>
<p> }</p>
<p>}</p>
<p>
답변 2개
/lib/Cache/FileCache.class.php on line 156
여기 보시면
chmod($cache_file_path, G5_FILE_PERMISSION); 로 되어 있습니다.
@chmod($cache_file_path, G5_FILE_PERMISSION);
이렇게 변경해 보세요. permission 문제는 해결이 안 되지만 warning 메시지로 인한 부작용은 막을 수 있습니다.
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 2개
nginx는 어떤 user의 프로세스로 돌아 가나요?
selinux 설정은 어떻게 되어 있나요?
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인