Solved

how to install proftpd

Posted on 2002-07-02
11
750 Views
Last Modified: 2013-12-15
I am trying to install proftpd into a RedHat Linux 6.2 box to replace wu-ftpd.
I downloaded proftpd-1.2.5rc1-1.i386.rpm from ftp.proftpd.net and run "rpm -i proftpd-1.2.5rc1-1.i386.rpm" but got the following error:
error: failed dependencies:
       libc.so.6 (GLIBC_2.2) is needed by proftpd-1.2.5rc1
       libc.so.6 (GLIBC_2.2.3) is needed by proftpd-1.2.5rc1
I tried to search for GLIBC_2.2 but just could not get the right version. I am wondering what caused the problem exactly, since the Linux is a normal installation, do I need to run any updates to install proftpd.
BTW, I didn't find any package under ftp.proftpd.net/distrib/packages/RPMS, so had to download all .rpm from the historics folder, are they the right things to download.
In brief, I need help in getting and installing proftpd into a RedHat Linux 6.2 to replace wu-ftp. Any detailed instructions are highly appreciated...
0
Comment
Question by:asp168
  • 6
  • 5
11 Comments
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
I don't think you'd want to use a version pf ProFTP that old and I doubt that you'll find a pre-built rpm image for a version of RedHat that old. Why not get the sources from proftpd.net and build your own copy? It's pretty easy, especially if your 6.2 system is up to date w/respect to the 6.2 errata.
0
 

Author Comment

by:asp168
Comment Utility
can you give me a link to the download and instructions of installation? thanks!
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Get the 1.2.5 release code from ftp://ftp.proftpd.org/distrib/source/ and unpack it somewhere. You can build it with an unadorneed "./configure", but I like my copies to be installed similar to where wu-ftp lives and use:

./configure  --prefix=/usr --localstatedir=/var --sysconfdir=/etc

which places the executables in /usr/sbin. the conf stuff in /etc and the dynamic data in /var.
0
 

Author Comment

by:asp168
Comment Utility
I installed it and just made the following changes in the /etc/proftpd.conf:

User root
Group root

Then I tried to start it up by running ./proftpd in the folder of /usr/sbin, I didn't see any error message after that.
But I can't ftp to the server. Please advise if the above procedures are right and how to verify the proftpd is running?

thanks
0
 

Author Comment

by:asp168
Comment Utility
I tried to start it by running "./proftpd -n -d2 -c /etc/proftpd.conf" and got the following error:

Domainname - Failed binding to 0.0.0.0, port 21: Address already in use
Domainname - Check the ServerType directive to ensure you are configured correctly.

Please advise what caused the error, thanks!!
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Typically that means just what it says, namely that something else already is bound to port 21. My guess is that wu-ftp is probably installed and that inetd is listening on port 21 for wu-ftp. I always remove any other ftp servers before installing ProFTP, but you can simply edit /etc/inetd.conf and comment out the "ftp" line and tell inetd to re-read the config with 'killall -HUP inetd".  A quick check for port 21 being in use is to execute 'lsof | grep ftp'. If there is something bound to port 21 that command will tell you what it is.
0
 

Author Comment

by:asp168
Comment Utility
yes it was because the proftpd is already, now how to restart the proftpd with new settings in the /etc/proftpd.conf without restarting the whole linux server?
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Oh, that's easy. Issue a 'killall proftpd' and then run the executable again.
0
 

Author Comment

by:asp168
Comment Utility
The following was fixed with a Linux 7.2 box with a restarting, but I got the same problem with a Redhat Linux 6.2 and just can't fix it out, I tried restarting the server, killall proftpd, and it said  no process killed. I ran "ps" and could not see the proftpd process at all. Seems that the proftpd was not start up. What exactly is the problem of the following...

I tried to start it by running "./proftpd -n -d2 -c /etc/proftpd.conf" and got the following error:

Domainname - Failed binding to 0.0.0.0, port 21: Address already in use
Domainname - Check the ServerType directive to ensure you are configured correctly.

Please advise what caused the error, thanks!!
0
 

Author Comment

by:asp168
Comment Utility
I guessed the problem is because the ftp was enabled in the inetd.conf, so I # the ftp line.
Now a quick question is how to active the new inetd.conf without restarting the server, since my server can't be shutdown for reboot...
0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
Comment Utility
That's in an earlier comment, but to get inetd to re-read its config file and stop listening on port 21 issue the command 'killall -HUP inetd'
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now