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 ? Quote
capoker Posted March 23, 2020 Author Posted March 23, 2020 Ok, solved it by adding "gc_probability: null" in framework.yaml Quote
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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.