Using ftp in my website directory var/www/html

Posted June 15, 2014 6.6k views
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:

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.

Submit an Answer
1 answer
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.
chown -R user-apache-runs-as:group-apache-runs-in /home/yourftpuser
chmod -R 755 /home/yourftpuser/*
Alternatively I would recommend using SFTP.