removed unnecessary config, made apache optional