Pineapples cannot stand waterlogging. ... The best soil for pineapple culture is a well-drained, sandy loam with a high content of organic matter and it should be friable for a depth of at least 60 cm. The crop does well on optimum pH of 4-5.
From Google.