capoker Posted March 23, 2020 Posted March 23, 2020 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 ?
capoker Posted March 23, 2020 Author Posted March 23, 2020 Ok, solved it by adding "gc_probability: null" in framework.yaml
wolstech Posted March 23, 2020 Posted March 23, 2020 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now