Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phpmyadmin Session Start error on last version

Tags:

phpmyadmin

I've updated Phpmyadmin from 4.4.1 version to 4.4.2 version and started to get this error:

Warning in ./libraries/session.inc.php#101 session_start(): open(/var/lib/php/session/sess_bsv20h8gq58qq1ep33qbfrb7r62jtksi, O_RDWR) failed: Permission denied (13)

Backtrace

./libraries/session.inc.php#101: session_start() ./libraries/common.inc.php#349: require(./libraries/session.inc.php) ./index.php#12: require_once(./libraries/common.inc.php)

This happened on two different machines with Centos 6.6 installed. The serber have Apache 2.2, PHP 5.4 and Nginx as reverse proxy.

like image 757
RevengeFNF Avatar asked Apr 14 '15 16:04

RevengeFNF


1 Answers

In my case, I was running nginx primarily so needed to chown the sessions directory to nginx for user and group... (By default, the session folder was in the apache group).

chown nginx:nginx /var/lib/php/session

Then force refresh the phpMyAdmin page and the session permission related errors are resolved.

And if existing sessions, the contents too:-

chown -R nginx:nginx /var/lib/php/session    
like image 173
zigojacko Avatar answered Sep 23 '22 08:09

zigojacko