This quick guide (curiously it is cited even in Web Mapping Illustrated) is a bit out of date but still mostly correct. Only ignore the last lines about sed magic and the relative (broken) link to official PostGIS doc.