Solved

how to install proftpd

Posted on 2002-07-02
11
758 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 7125790
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
ID: 7126810
can you give me a link to the download and instructions of installation? thanks!
0
 
LVL 40

Expert Comment

by:jlevie
ID: 7126914
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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:asp168
ID: 7127461
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
ID: 7127543
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
 
LVL 40

Expert Comment

by:jlevie
ID: 7127730
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
ID: 7127752
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
ID: 7127798
Oh, that's easy. Issue a 'killall proftpd' and then run the executable again.
0
 

Author Comment

by:asp168
ID: 7128373
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
ID: 7128444
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
ID: 7128575
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
RHEL7 - Error installing docker compose 2 219
SMB share across internet 15 116
Linux MD5 Hash 7 97
user defined, environmental. local, global variables 4 29
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

759 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