finally working
adding a check to see if apache is listening on correct port