• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

plesk-php-cleanuper turn off email notifications

paul133

New Pleskian
Hi
I am getting hourly emails notify me of "cleaned up" sessions.

They are very large and filling up the email account and slowing my email client.

I can not find anywhere to turn off these email notifications?

Can this be done for plesk-php-cleanuper from control panel or ssh somewhere?
 
Thanks for reply,

I have applied a fix ( https://kb.plesk.com/en/127120 ) and the fix ( https://kb.plesk.com/en/128185 ) for the "find 24 " error message.
And the above.

But I am still getting emails and with the "find" error....

email received 30MB
"/etc/cron.hourly/backup-plesk-php-cleanuper:

/usr/lib64/plesk-9.0/php_session_cleaner
/var/lib/php/session
/var/lib/php/session/sess_r8ljd18h07rta341iu4nt9lgg1

..................

/var/lib/php/session/sess_hkkaqngnqdqfav5eqnopm978n7
find: 24: No such file or directory"


Current plesk-php-cleanuper
----------------------------------------
# This purges session files older than X, where X is defined in seconds
# as the largest value of session.gc_maxlifetime from all your php.ini
# files, or 24 minutes if not defined. See ${maxlifetime}

# Look for and purge old sessions every hour

pgrep -f ".*$0$" | grep -qv $$ && exit 0

renice 19 -p $$ >/dev/null 2>&1

[ -x /usr/lib64/plesk-9.0/maxlifetime ] && [ -d /var/lib/php/session ] && /usr/lib64/plesk-9.0/php_session_cleaner /var/lib/php/session $(/usr/lib64/plesk-9.0/maxlifetime) 2>/dev/null
 
Back
Top