I fixed my problem by installing Apache2 but disabling it by doing the command:
sudo update-rc.d apache2 disable
That I found in the second answer here and you can read more about that command in this answer. So that Apache 2 doesn't start up automatically since I use Apache Tomcat 7.
Then I followed the tutorial found here on setting up virtual users using htpasswd.
Also since I wanted to use SSL I added the following lines to the vsftpd.conf
file:
# SSL ssl_enable=YES # this selects the cipher type ssl_ciphers=HIGH # choose according to your preference force_local_data_ssl=YES # choose according to your preference force_local_logins_ssl=YES # enable this if you enable ssl. ssl_tlsv1=YES ssl_sslv2=YES ssl_sslv3=YES # give the correct path to your currently generated *.pem file rsa_cert_file=/etc/vsftpd/vsftpd.pem pasv_enable=YES pasv_min_port=12000 pasv_max_port=12100 # Some mobile clients require this require_ssl_reuse=NO
Just replace /etc/vsftpd/vsftpd.pem
in the line rsa_cert_file=/etc/vsftpd/vsftpd.pem
with the path to your ssl certificate. I can't remember the link I used to generate my ssl certificate but I think I used a command similar to the one found in this tutorial.