How to setup VSFTP with Apache Redhat

Step 1. Execute the following script to install FTP

# yum install vsftpd

Step 2. Run the following script to configure FTP

# vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO

# chkconfig vsftpd on

Step 3. Create an user to access Apache home directory

# useradd -g apache -d /home/user user
# passwd user

Step 4. Start the service

# service vsftpd start

Step 5. Set the permissions

# vi /etc/group
apache:x:##:user

Step 6. Create a soft link to Apache home directory

# ln -s /var/www/html /home/user/html

Step 7. Set permissions in web root

# chgrp -R apache *
# chown -R apache *
# chmod -R 775 *

Step 8. VSFTP is now activated.

Thank you.

Comments

Popular posts from this blog

SVN: File remains in conflict

12 tweakings for WHM/cPanel to speed up WordPress

HowTo: Enable extended logging for exim