Changed way of getting Apache credentials