LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-01-2011, 04:15 AM   #1
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Rep: Reputation: 3
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 ?
 
Old 02-01-2011, 04:39 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 02-01-2011, 05:41 AM   #3
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
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.
 
Old 02-01-2011, 06:08 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
Code:
bind x.x.x.x
 
Old 02-01-2011, 09:20 AM   #5
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
I will try that but since both of you are referring to xinit.d so is that the same thing ?
 
Old 02-01-2011, 11:46 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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"
 
Old 02-01-2011, 11:11 PM   #7
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
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-01-2011 at 11:12 PM.
 
Old 02-02-2011, 12:27 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 02-02-2011, 03:29 AM   #9
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
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.
 
Old 02-02-2011, 07:12 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
proftpd not starting at start-up Deluka Linux - Newbie 13 07-11-2009 01:14 PM
proftpd won't start :( lmcilwain Linux - Server 2 12-28-2006 08:42 AM
ProFTPD Start Error signature16 Linux - Networking 2 03-28-2006 11:18 PM
ProFTPD won't start! taigon Linux - Software 6 03-09-2006 12:57 AM
proftpd won't start Rajahuroman Linux - Networking 3 08-14-2004 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration