Update Travis config: install Apache dependencies only in relevant environments