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 with as much raid card as possible (min. 2).

You need at least 50TB to start with.

You also need to have your file storage system to distribute equally your files on your HD. You need enterprise level HDs.

You will need gigbit uplink to a switch connected to multiple 10Gbits uplinks. You also need a cc processor. You must absolutly avoid Paypal. You can also forget about any US processor as they are too afraid to get sued.

You need a DC not located in the USA and need a fairly good price on BW otherwise, you wont stay for long. You also need a domain name not managed by the USA

Anything that is higher than 3$ per mbps is too high.

In hardware you are looking at buying 30k of material or if you lease (which i dont recommend) you can get cheaper price. Most providers will ask you 3 months upfront.