Question

Using ftp in my website directory var/www/html

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


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.

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.