Problem: Errors About php sessionclean

Problem

You notice error messages from cron like the following email:

From: root@ucs.multi.ucs
To: root@ucs.multi.ucs
Date: 10. Dezember 2018 um 15:09
Subject: Cron root@ucs; [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean

/usr/lib/php5/sessionclean: 34: /usr/lib/php5/sessionclean: php5: not found

Solution

Sometimes during upgrade a file related to an entry for cron does not get removed. The directory php5 itself does not exist with UCS version from 4.3 on.

Remove the leftover file by:
rm -f /etc/cron.d/php5

1 Like
Mastodon