This subject has been broadly discussed online. For example here and here , and it seems it all comes down to:
- Using a seamless white background
- Using enough light to eliminate shadows - two or 3 lights setups are recommended.
I have tried it, and I was able to produce good results with a single sheet of white paper (a few bucks at a hobby store) and some desk lamps. Of course the better the light the more likely you are to produce a good photo, but if you don't want to spend a lot of money, just some ikea desk lamps will do. (Use some form of diffuser on them to soften the light)
EDIT: I must add that with my setup I usually can get a pretty good shot in camera, but then I have to tweak it in post and lighten highlights etc, so I recommend shooting RAW if you're not.