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
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!
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!