從 browser login phpmyadmin 時 show error :
$ b% b4 F4 n t* T! w& p# q3 O$ ~! f+ o
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.# N) k2 I |8 B- c# t
問題1.不顯示登入畫面
; A: X, n2 a4 W6 @. ~ Zsol:
/ g/ t- D! x: K& B2 m* J- C g. }8 k& u* e8 i8 U# R: X, w( @
in /etc/php.ini 需有 - D/ m% H) d% {5 R) [6 h
- session.save_path = "/var/lib/php/session"
複製代碼 and /var/lib/php/session 目錄的擁有者 及權限是& y4 v' K$ A8 {) c: z! I
- drwxrwx--- 2 root nginx 4096 Feb 16 04:47 session
複製代碼 因 group 本來是 apache ,應改為 nginx ====ok
1 B, W' m( t4 ]# F0 n& [/ d& `0 G' f5 ^' R4 W% z
問題2. 有顯示登入畫面,但不能進入 mysql, input 正確 account password 卻一直 出現 登入畫面
' D% T7 B8 R5 T; i% s$ D/ vsol :/ H- a+ L' W. b2 j) j* c y
chmod 777 /var/lib/php/session ==> 搞定 [/ U( }4 ?! |; V$ `
; b$ j% _2 q& L' T P |
|