A well draining potting medium, lots of sun, warmth and humidity. I used to have our local supermarket cut fresh pineapple for me and I'd ask them to give me the top that was cut off so that I could grow it; just let the cut area dry out and callous over a few days and sit it on top of the soil or just beneath the soil and it would take root.
Here's the database link for
Pineapple (Ananas comosus)
More growing information can be found here:
http://edis.ifas.ufl.edu/mg055