Jump to content

Recommended Posts

Posted

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 ?

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...