|
查 /var/log/nginx/error.log 有下列錯誤:
" @( F- K4 U: l6 Q4 p( w2015/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"
+ Q4 A/ r8 T. M6 E* q( {8 l+ `及
7 p0 o4 h p$ @4 }8 w' W% o. y$ W' d8 {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"3 M' T$ E9 h5 T
( h" ~* z: v) ~ {" M; [
是因為目錄 /var/lib/php/session 權限問題.
2 ~' h0 G+ u6 ]# V2 ^6 ^Sol: chmod 777 /var/lib/php/session
, s; V- k( m' t# g |
|
|