Vortex phase diagrams of YBa2Cu4O8 in H∥c and H∥b