Question

How to setup a file download on a VPS

Posted August 1, 2016 5.3k views
Apache PHP

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?

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.

1 answer

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

by Pablo Carranza
This article will teach you how to use Filezilla to transfer and manage files securely on your VPS.
Submit an Answer