Fix CAS auth section, and update php section