I have been trying to understand when and how php sessions are being deleted from my server. Some websites are my own, others belong to clients. All have their own user names (and groups. The session files are stored at '/var/cpanel/php/sessions/ea-php73' but I also have some current ones at '/../ea-php72'. I'm not sure why I have both.
I have looked at 'clean_user_php_sessions', and I can see it's running as a root cron job at 9 and 39 minutes past every hour. The output is directed to NULL. I would like to have the output sent to me as an e-mail (as a temporary measure) in the hope that I can see what's going on. I have edited the crontab, and added MAILTO='[email protected]' and removed the ' > /dev/null 2>&1' from the end of the relevant cron command line ('9,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions').
But I still get no e-mails. Do I need to do something further? I'm assuming that if there's actually no output I'd still get an e-mail telling me that?
I have looked at 'clean_user_php_sessions', and I can see it's running as a root cron job at 9 and 39 minutes past every hour. The output is directed to NULL. I would like to have the output sent to me as an e-mail (as a temporary measure) in the hope that I can see what's going on. I have edited the crontab, and added MAILTO='[email protected]' and removed the ' > /dev/null 2>&1' from the end of the relevant cron command line ('9,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions').
But I still get no e-mails. Do I need to do something further? I'm assuming that if there's actually no output I'd still get an e-mail telling me that?