從 browser login phpmyadmin 時 show error :+ E/ v, { H. v- U) c. s
& H+ \+ b' T; E, M6 s% a0 P8 v# `Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser. C8 M6 }; O* ]
問題1.不顯示登入畫面" V6 N3 u- P3 }
sol:; b# H, f8 o/ e6 G0 \( ~* i
6 i* q$ R. M8 m- W& m+ t
in /etc/php.ini 需有
3 F: z/ b# n$ F X- session.save_path = "/var/lib/php/session"
複製代碼 and /var/lib/php/session 目錄的擁有者 及權限是
8 w& G! W7 d# b- drwxrwx--- 2 root nginx 4096 Feb 16 04:47 session
複製代碼 因 group 本來是 apache ,應改為 nginx ====ok" A9 T2 R# o# E$ e% A3 }8 ]; d
% X+ b' a# K/ Y( E6 F
問題2. 有顯示登入畫面,但不能進入 mysql, input 正確 account password 卻一直 出現 登入畫面# C, L( y% A' g( P9 K5 \
sol :
/ B- n: r" ?' H1 ]; nchmod 777 /var/lib/php/session ==> 搞定6 s3 a9 J. @& r9 s1 O3 b
, F) E' b- _5 H X# w7 |6 u$ A; K |
|