I dunno about where to buy a full script. I recommend hiring some devs.
For Hardware , If you plan on using lighttpd, its a single thread software and will require the biggest single thread cpu you can find.
For ram , go with 12-18GB , storage is the most important , you have to go RAID10 and...