Report this

What is the reason for this report?

Using ftp in my website directory var/www/html

Posted on June 15, 2014

I installed the FTP as it shown in the tutorials. The problem is they are just showing it as a new user in the home directory.

I want to use it on my apache website, var/www/html directory. How can i make it possible. Its not shown in the tutorials.

here is the tutorial that I read: https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-on-ubuntu-12-04



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!

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.

Hey,

I would recommend that you change your apache web dictionary to your FTP home folder as it will be more secure.

To do this you need to edit your Apache configuration to reflect the changes and once that is done you should updated the permissions of the folder by running these commands. <pre> chown -R user-apache-runs-as:group-apache-runs-in /home/yourftpuser chmod -R 755 /home/yourftpuser/* </pre> Alternatively I would recommend using SFTP.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.