Sessionclean php5 not found


#1

After updating EasyEngine I keep getting the following message delivered to /var/mail/root. What’s wrong and what is the best way to fix this? Thanks!

Subject: Cron root@myserver [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean

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


#2

Because php5 is not found, would it be OK to just stop this script from running? If so, how can I do this, I can’t find it with “crontab -e”?


#3

Yes, since EE doesn’t use php5 anymore, you can safely comment out this here:

sudo nano /etc/cron.d/php5

you will see a similar line:

09,39 * * * * root [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean

change it to look like this:

# 09,39 * * * * root [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean

then exit and save the file.


#4

Thank you @tyrro!


#5