Baikal: Permission denied error after PHP 5.6.21 update

Created on 18 May 2016  路  2Comments  路  Source: sabre-io/Baikal

So my Baikal v0.4.4 stopped working and I suspect it might have to do with a recent update to PHP 5.6.21 (I have not changed anything with the configuration lately except OS updates).

I can no longer login to the admin panel and when I login as a user I get to see a

"Warning: session_start(): open(/var/lib/php/session/sess_pudse036103k3lvj3nc9at96q5, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/pathtobaikal/Core/Frameworks/Flake/Framework.php on line 192"

Edit:
And another error shows at the bottom of the page: "Fatal error: Uncaught exception 'ErrorException' with message 'Unknown: open(/var/lib/php/session/sess_pudse036103k3lvj3nc9at96q5, O_RDWR) failed: Permission denied (13)' in Unknown:0 Stack trace: #0 [internal function]: Baikal\Framework::exception_error_handler(2, 'Unknown: open(/...', 'Unknown', 0, Array) #1 {main} thrown in Unknown on line 0"

Any idea what is causing this and how to fix it?
Thanks

question

Most helpful comment

It was empty, but the access rights on the folder seemed odd (root:apache, 770) so I set them to
chown root:psacln /var/lib/php/session
(I am on CentOS+Plesk btw.).

So this worked, but I am not sure about the security implications.

Thank you!

All 2 comments

Try deleting the contents of the /var/lib/php/session directory.

It was empty, but the access rights on the folder seemed odd (root:apache, 770) so I set them to
chown root:psacln /var/lib/php/session
(I am on CentOS+Plesk btw.).

So this worked, but I am not sure about the security implications.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FelixR2002 picture FelixR2002  路  7Comments

gitfvb picture gitfvb  路  4Comments

BobWs picture BobWs  路  5Comments

benrubson picture benrubson  路  5Comments

jvoisin picture jvoisin  路  3Comments