How to setup a file download on a VPS

What’s the easiest way I can setup a file sharing service where users can download files from my VPS with a link that I can put on my website?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

The very simplest way would be to create a new droplet from the LAMP one-click image (this is overkill for the purpose but will do the job). Once your droplet is created you can use a client like FileZilla to make an SFTP connection to your droplet and upload the file(s) you wish to share to /var/www/html

Note: The LAMP image will install a database server and PHP which are not needed for this. Another option would be to simply install the web server alone. To do this, start by creating your droplet from the Ubuntu 16.04 image. Once it’s finished being created, ssh into the droplet.

Once you’re connected run the following commands:

apt-get update
apt-get -y install apache2

Once this is complete you can use Filezilla to upload your files to /var/www/html