우성짱님의 도커로 멀티도메인구성후 로그인 안되는현상~
본문
우성짱님의 도커로 멀티도메인구성(https://www.wsgvet.com/ubuntu/123)로 로컬환경을
구성해보고있습니다만.......그누보드만 접속이 되질않습니다......
[현재의상태]
그누보드,워드프레스,라이믹스등을 로컬환경에설치.테스트중
1.워드프레스 ----> 정상작동
2.라이믹스-----------> 정상작동
3.기타 쇼핑몰------->정상작동
4. 그누보드--------->설치까지는정상적으로되나 이후 화면표시및 로그인안됨.
(설치완료후 이동하면 http://localhost/bbs/logout.php로 아래이미지처럼자동이동)
에러로그
2021/06/26 07:27:47 [error] 23#23: *381 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.18.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://172.18.0.5:9000", host: "localhost:8080"
access로그
172.18.0.1 - - [26/Jun/2021:06:19:56 +0900] "GET / HTTP/1.1" 200 4415 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36" "-"
172.18.0.1 - - [26/Jun/2021:06:19:56 +0900] "GET /theme/basic/css/default.css?ver=210618 HTTP/1.1" 200 6159 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36" "-"
그누보드nginx/con.d/gnuboard.conf
server {
listen 8080;
listen [::]:8080;
server_name 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;
}
}
nginx/nginx.conf
user nginx;
worker_processes auto; # use "grep processor /proc/cpuinfo | wc -l" and type the number here, or stay with automatic configuration
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024; # use "ulimit -n" and type the number here
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
server_names_hash_bucket_size 128;
keepalive_timeout 65;
charset urtf-8;
server_tokens off;
proxy_hide_header X-Powered-By;
client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 100M;
large_client_header_buffers 2 1k;
client_body_timeout 12;
client_header_timeout 12;
send_timeout 10;
gzip on;
gzip_disable ¡°MSIE [1-6].(?!.*SV1)¡±;
gzip_buffers 16 8k;
gzip_comp_level 6;
gzip_http_version 1.1;
gzip_min_length 256;
gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/rss+xml text/javascript image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype image/x-icon;
gzip_vary on;
gzip_proxied any;
gzip_static on;
include /etc/nginx/fastcgi.conf;
include /etc/nginx/conf.d/*.conf;
}
입니다.....
!-->!-->!-->!-->답변 2
common.php에서
// 4.00.03 : [보안관련] PHPSESSID 가 틀리면 로그아웃한다.
if (isset($_REQUEST['PHPSESSID']) && $_REQUEST['PHPSESSID'] != session_id())
session_id( $_REQUEST['PHPSESSID']); // 추가해 보세요.
goto_url(G5_BBS_URL.'/logout.php');
// QUERY_STRING
$qstr = '';
오랜만에 접속해서 해결하였습니다........
원인은 도커내의 권한문제였습니다......
늦었지만 해결하였기에 댓글남김니다..
관심 감사합니다~~
답변을 작성하시기 전에 로그인 해주세요.