標題: [error] 32693#0: *420 FastCGI sent in stderr: "PHP message: PHP Warning: U [打印本頁] 作者: coav4u 時間: 2015-10-1 16:09 標題: [error] 32693#0: *420 FastCGI sent in stderr: "PHP message: PHP Warning: U 查 /var/log/nginx/error.log 有下列錯誤:) `4 a4 e7 Z- G6 [/ q
2015/09/30 20:06:49 [error] 32693#0: *420 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: open(/var/lib/php/session/sess_lpa5v8dftintrtmn450fsfrl41, O_RDWR) failed: Permission denied (13) in Unknown on line 0" while reading response header from upstream, client: 192.168.1.1, server: temp.52av.tv, request: "GET /forum.php?mod=post&action=newthread&fid=67 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm_av4u.sock:", host: "temp.av4u.info", referrer: "http://temp.av4u.info/forum.php?mod=forumdisplay&fid=67"! `/ H' `% K( z! s I
及" m i+ w- f' e2 i% o9 E
PHP message: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0" while reading upstream, client: 192.168.1.1, server: temp.52av.tv, request: "GET /misc.php?css=1_wysiwyg&qDm HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm_av4u.sock:", host: "temp.av4u.info", referrer: "http://temp.av4u.info/forum.php?mod=post&action=newthread&fid=67" % V. b- S3 W' r# ~% [& M, H8 s/ ]6 Z5 T
是因為目錄 /var/lib/php/session 權限問題.( m; f W( b, J1 l
Sol: chmod 777 /var/lib/php/session * N% {1 ?# C0 Y