A concrete footing. Even though the concrete hardening (technically known as curing) process begins quickly, you should leave the posts undisturbed for at least two days after pouring the concrete.
This video showcases various types of garden fencing, featuring wood and concrete posts, wood and concrete gravel boards, ...