http://weait.com/content/build-your-own-openstreetmap-server
If you want to serve tiles you would then have to take a look at mod_tile: http://wiki.openstreetmap.org/wiki/Mod_tile