Installation and Setup Proftpd on Centos 5.x

it is for FTP server the most used, especially by those who use cPanel/WHM.

In the default package, Centos 5.6 comes with vsftpd Installed, and before installing proftpd, it is good to remove the VSFTPD (VSFTPD.I386 – for our configuration).

Uninstall/Remove vsftpd:

1. See the list of packages * FTP * installed:

yum list installed | grep ftp
image

2. Remove vsftpd.i386.

yum remove vsftpd.i386

Installation Proftpd on Centos 5.x

1. Download ProftPD archive:

wget --passive-ftp ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3e.tar.gz

2. Dismissal, enter the proftdd* folder and follow the installation and configuration instructions:

tar xvfz proftpd-1.3.3e.tar.gz

cd proftpd-1.3.3e

./configure --sysconfdir=/etc

To configuration “./configure –sysconfdir=/etc”, can intervene o error If you don't have it GCC compilerthe installed.

checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking target system type… i686-pc-linux-gnu
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: no acceptable C compiler found in $PATH
See `config.log’ for more details.

install gcc and gcc-c++ Using the command line:

yum install gcc gcc-c++

After GCC and GCC-C ++ have been installed, we continue the installation of proftpd, resuming the order from punct 2.

./configure --sysconfdir=/etc

3. Execution of order lines for installation:

make

make install

4. We create the files “proftpd” in “/USR/SBIN/” and “/usr/local/sbin/”.

ln -s /usr/local/sbin/proftpd /usr/sbin/proftpd

5. Cream and copy the contents of the file proftpd.txt  in “/etc/init.d/proftpd”.

nano /etc/init.d/proftpd

Ctrl+X & Y to go out and save the changes.

6. We set the service level of service “proftpd”

chkconfig --levels 235 proftpd on

7. We set the file /etc/init.d/proftpd to be executed and run as an application.

chmod u+x /etc/init.d/proftpd

8. edited Fisierul Nano /etc/proftpd.conf.

nano /etc/proftpd.conf

Below the line “DefaultServer on” Add the line “RootLogin on“. This line allows us to use the user “root” to connect to the FTP. On the line “Group” replace “nogroup” cu “nobody“.

config proftpd

9. Start the FTP server:

/etc/init.d/proftpd start

[root@server proftpd-1.3.3e]# /etc/init.d/proftpd start
Starting proftpd: [ OK ]
[root@server proftpd-1.3.3e]#

Alternative order to start the ProftPD service (preferred by me)

service proftpd start

Possible errors during installation and configuration:

1. Lack of compiler gcc and gcc-c++. It is solved with the instructions in point 2.

2. When the service starts, the error appears “Starting proftpd: – Fatal: Group: Unknown group ‘nogroup’ on line 30 of ‘/etc/proftpd.conf’ [FAILED]“. Solving in point 8.

Installing & Setup ProFTPD Server – Centos 5.6.

Founder and editor Stealth Settings, din 2006 pana in prezent. Experienta pe sistemele de operare Linux (in special CentOS), Mac OS X , Windows XP > Windows 10 si WordPress (CMS).

Home Your source of IT tutorials, useful tips and news. Installation and Setup Proftpd on Centos 5.x
Leave a Comment