Check if apache is installed before creating virtualhost file.