Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-01-2011, 05:15 AM
|
#1
|
Member
Registered: Jun 2010
Posts: 160
Rep:
|
ProFTPd cannot start
Hello.
I run Debian 5 64-bit machine with 2 IP-addresses. I installed ProFTPd through init.d instead of standalone but when I start it, it gives the following error:
Code:
ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.
If I select standalone as servertype through the config, it works good.
Previously, I had this same machine on the same OS with 1 IP-address. I installed ProFTPd and it worked well with init.d . Maybe the 2nd IP is causing it ?
How can I make it work through init.d without having this error ?
|
|
|
02-01-2011, 05:39 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
Hi,
Check /var/log/xinetd and/or /var/log/messages to see if you find any clues
Also take a look at this post to see if that's the case.
Regards
|
|
|
02-01-2011, 06:41 AM
|
#3
|
Member
Registered: Jun 2010
Posts: 160
Original Poster
Rep:
|
That is xinit.d . My case is different. It possibly just needs configuration because on a single IP, it works great. Maybe ProFTPd doesn't know which IP to run on and is confusing it.
|
|
|
02-01-2011, 07:08 AM
|
#4
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
Note that proftpd either stanalone, or through xinetd, by default will listen on any available interface, so check the logs to see why it cannot start
If you want to allow proftpd to bind only on a singe IP, you can use in /etc/xinetd.d/proftpd
|
|
|
02-01-2011, 10:20 AM
|
#5
|
Member
Registered: Jun 2010
Posts: 160
Original Poster
Rep:
|
I will try that but since both of you are referring to xinit.d so is that the same thing ?
|
|
|
02-01-2011, 12:46 PM
|
#6
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
There is no xinit.d. Proftpd can be started either from init.d (where you start proftpd using /etc/init.d/proftpd start), or through xinetd (where you start the xinetd service)
In the 1st case you use in proftpd.conf "ServerType standalone", while in the 2nd it's "ServerType inetd"
|
|
|
02-02-2011, 12:11 AM
|
#7
|
Member
Registered: Jun 2010
Posts: 160
Original Poster
Rep:
|
Ok. I've selected servertype init.d now
And for binding an IP I cannot find /etc/xinit.d directory.
The dir I see related is /etc/proftpd
Last edited by AsadMoeen; 02-02-2011 at 12:12 AM.
|
|
|
02-02-2011, 01:27 AM
|
#8
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
So, if you're using
Code:
/etc/init.d/proftpd start
to start proftpd, then you can use the DefaultAddress directive in /etc/proftpd.conf to specify the IP address you want the server to listen:
Code:
DefaultAddress x.x.x.x
|
|
|
02-02-2011, 04:29 AM
|
#9
|
Member
Registered: Jun 2010
Posts: 160
Original Poster
Rep:
|
Hello.
No I'm not using servertype as standalone. I have it selected to inetd and that's why it doesn't start. So I am not using /etc/init.d/proftpd start to start the server because that's needed if servertype is standalone.
I want to run it as servertype inetd
But then it doesn't start and says:
ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.
|
|
|
02-02-2011, 08:12 AM
|
#10
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
If you don't have /etc/xinetd, maybe you need to install the xinetd package first
Code:
sudo apt-get install xinetd
Then stop the proftpd service:
Code:
/etc/init.d/proftpd stop
Change "ServerType standalone" to "ServerType inetd" in proftpd/conf and start xinetd
Code:
/etc/init.d/xinetd restart
|
|
|
All times are GMT -5. The time now is 06:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|