Jump to content

[Solved] No write access to PHP session directory


capoker

Recommended Posts

Hi,

 

My Symfony app is raising an exception about access right to PHP session directory : 

SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php73) failed: Permission denied (13)

 

It seems that I can solve by granting write access rights to this directory, but I can't see it in cPanel.

Alternatively, I could change the session directory in php.ini (to /tmp ?), but I don't have access to php.ini either.

 

Any clue ?

Link to comment
Share on other sites

I see you've fixed it, but the issue is that the session directory is used by everybody, so you don't have full rights to it. We don't allow custom PHP.ini settings either for security reasons. Your software was designed with the assumption that you have the entire server to yourself.

 

For those who run into similar errors in the future, the fix is to configure your software to not attempt to clean these folders up.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...