|
查 /var/log/nginx/error.log 有下列錯誤:
5 }6 v' D4 w4 D) A- [8 m, M2015/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"
& ^* d! d. W: K6 t9 G及6 H8 i7 @: u. D7 `
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+ n8 t' |$ m: G) m5 W- g% J! A
3 p* Z# _! Q' x8 O8 s! c& z2 k是因為目錄 /var/lib/php/session 權限問題.8 ]+ \% Y" e' [# Z6 U9 }+ e
Sol: chmod 777 /var/lib/php/session
) Q8 c! T* }: \ |
|
-->
|