Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

simondavies's avatar

Homestead: Session Start Open - Permissions denied

I have just resume my homestead vm etc and gone back to a sit im working on and in the browser I am getting the following

    Warning: session_start(): open(/var/lib/php/sessions/) failed: Permission denied (13) in sess_????) failed: Permission denied (13) in...

Any ideas how to prevent this or fix, other than popping into the vm and giving it permissions. blah! blah!

0 likes
5 replies
simondavies's avatar

should be able to its just a homestead VM on my local dev machine?

Mbezdek's avatar

Yes, but it isn't probably nice solution.

Why you can't directly change permissions for session folder?

simondavies's avatar

not a problem i can vm in and will change them but might just simply change the path to the tmp via the session_save_path, thanks for the help thought, just wondering if there was an easy way ish :-)

Possible alter the sites available file for that one particular site and change it there:

     session.save_path=0;660;/tmp/

Please or to participate in this conversation.