• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

plesk-php-cleanuper No such file issue not fixed

aljam

New Pleskian
Have just upgraded Plesk on VPS to 12.5.30 and am now receiving these hourly notices...

/etc/cron.hourly/plesk-php-cleanuper:

[....]

find: 24: No such file or directory

Have read https://kb.plesk.com/en/128185 but the Update Components button is not active indicating all updates have been applied.

Is there a more recent solution to this?

Thanks.
 
Make sure that you have following content of this file:

# cat /etc/cron.hourly/plesk-php-cleanuper
#!/bin/sh

# 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/lib/plesk-9.0/maxlifetime ] && [ -d /var/lib/php/session ] && /usr/lib/plesk-9.0/php_session_cleaner /var/lib/php/session $(/usr/lib/plesk-9.0/maxlifetime)
 
Many thanks Igor. There was an extra word "find" on the last line like this:
[ -x /usr/lib/plesk-9.0/maxlifetime ] && [ -d /var/lib/php/session ] && find /usr/lib/plesk-9.0/php_session_cleaner /var/lib/php/session $(/usr/lib/plesk-9.0/maxlifetime)

Have removed that and all seems good now.
 
Back
Top