portupgrade -Rrf php5-cgi would also have prevented this shocking amount of downtime