Cleaned up php install and switching, included an ubuntu upgrade command at the end to catch any updates.