httpd and vsftpd conflict

Posted on 2006-04-20
Last Modified: 2013-12-16

I'm not very familiar with tcp or config files in Linux.  I'm am trying to set up a FTP site using vsftp running on Redhat Linux Enterpise ES3.  I can get vsftpd to run fine when httpd is not running and httpd runs fine when vsftpd is not running.  

If httpd is running and I start vsftpd I get this message:

[root@argosy root]# service vsftpd start
Starting vsftpd for vsftpd:                                [  OK  ]
[root@argosy root]# service vsftpd status
vsftpd dead but subsys locked
[root@argosy root]#

If vsftpd is running and I start httpd I get this message:

Starting httpd: (98)Address already in use: make_sock: could not bind to address 'myhost':21
no listening sockets available, shutting down
Unable to open logs!

Question by:mwclassen
    LVL 15

    Accepted Solution

    Usually, httpd should not do anything with port 21. Sometimes port 81 is used as a secondary http port, so this might be a mistake in apache configs.

    Start with /etc/httpd/conf/httpd.conf and all files in /etc/httpd/conf.d and find out why port 21 was used. Most likely you'll find a declaration of a virtualhost that is incorrect.

    Author Comment

    What I found was that /etc/httpd/conf.d/ssl.conf was listening on the same address.  I commented the line out and now they both get along.  Will that cause problems elsewhere?

    Thanks, m1tk4
    LVL 15

    Expert Comment

    Whatever was there in ssl.conf with :21 is not something that is shipped by default, so you better ask the person who did this change in ssl.conf.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    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 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…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    755 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

    24 Experts available now in Live!

    Get 1:1 Help Now