Check that localhost works before proceeding