is there a good script to install on my server, or host service, to sell 1 download file at a time?

I want to sell a .zip, .pdf, or *video* file.

I'm OK with doing it myself, but would rather a good script to install to handle e-commerce and login to access the file once.

Thanks.