Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th January 2012, 01:24
madlars madlars is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tutorial: The Perfect Server Ubuntu 11.10 [ISPConfig 3] pureftpd issue

Hello,
when I try the "/etc/init.d/pure-ftpd-mysql restart" command
I get this error message: "Starting ftp server: /usr/sbin/pure-ftpd-wrapper: invalid configuration file /etc/pure-ftpd/conf/tls: No corresponding directive"

It's driving me insane I've been trying to figure it out all day.
for as far as I can tell I did it exactly as in the guide.

CHEERS! Lars.
Reply With Quote
Sponsored Links
  #2  
Old 18th January 2012, 18:46
Rescue9 Rescue9 is offline
Member
 
Join Date: Jun 2007
Posts: 52
Thanks: 5
Thanked 3 Times in 2 Posts
Default

What are the results when you run as root: cat /etc/pure-ftpd/conf/TLS
Reply With Quote
  #3  
Old 18th January 2012, 19:03
epretorious epretorious is offline
Member
 
Join Date: Feb 2010
Location: Truckee, CA
Posts: 33
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to epretorious Send a message via Yahoo to epretorious Send a message via Skype™ to epretorious
Question

I followed the instructions in Step 16 ("Install PureFTPd") of "The Perfect Server - CentOS 6.2 x86_64 With Apache2 [ISPConfig 3]" and have confirmed that PureFTPd is working correctly:

Code:
[eric@ispconfig-1 ~]$ grep -B1 -A2 -i tls /etc/pure-ftpd/pure-ftpd.conf 
# This option can accept three values :
# 0 : disable SSL/TLS encryption layer (default).
# 1 : accept both traditional and encrypted sessions.
# 2 : refuse connections that don't use SSL/TLS security mechanisms,
#     including anonymous sessions.
# Do _not_ uncomment this blindly. Be sure that :
# 1) Your server has been compiled with SSL/TLS support (--with-tls),
# 2) A valid certificate is in place,
# 3) Only compatible clients will log in.

TLS                      1

[eric@ispconfig-1 ~]$ sudo /etc/init.d/pure-ftpd restart
Stopping pure-ftpd:                                        [  OK  ]
Starting pure-ftpd:                                        [  OK  ]

[eric@ispconfig-1 ~]$ sudo /etc/init.d/pure-ftpd status
pure-ftpd (pid  1888) is running...

+------+---------+-------+------+-------------------------------------------+
| PID  |  Login  |For/Spd| What |                 File/IP                   |
+------+---------+-------+------+-------------------------------------------+
Please include the relevant portion of the PureFTPd configuration file.
__________________
Eric Pretorious,
Truckee, CA
Reply With Quote
  #4  
Old 18th January 2012, 19:14
madlars madlars is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If I run that command it says it could not find the file.
If i run it without the "cat" on the command it says :
bash: /etc/pure-ftpd/conf/TLS : Toegang geweigerd <<means access denied.
Reply With Quote
  #5  
Old 18th January 2012, 19:15
madlars madlars is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok I will try those instructions, how do i get to the configuration file?
Reply With Quote
  #6  
Old 18th January 2012, 19:16
epretorious epretorious is offline
Member
 
Join Date: Feb 2010
Location: Truckee, CA
Posts: 33
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to epretorious Send a message via Yahoo to epretorious Send a message via Skype™ to epretorious
Default

Quote:
Originally Posted by madlars View Post
...when I try the "/etc/init.d/pure-ftpd-mysql restart" command I get this error message: "Starting ftp server: /usr/sbin/pure-ftpd-wrapper: invalid configuration file /etc/pure-ftpd/conf/tls: No corresponding directive"
Sorry - I just realized that there is a fundamental difference between the way that Ubuntu/Debian packages PureFTPd+MySQL and the way that Centos/RH packages PureFTPd+MySQL:
  1. There is no pure-ftpd-mysql init script in Centos/RH, and;
  2. There is no pureftpd-wrapper script in Centos/RH.
Code:
[eric@ispconfig-1 ~]$ ls -al /etc/init.d/pure*
-rwxr-xr-x. 1 root root 1524 Mar 15  2011 /etc/init.d/pure-ftpd

[eric@ispconfig-1 ~]$ ls -al /usr/sbin/pure*
-rwxr-xr-x. 1 root root  21844 Mar 15  2011 /usr/sbin/pure-authd
-rwxr-xr-x. 1 root root   3283 Mar 15  2011 /usr/sbin/pure-config.pl
-rwxr-xr-x. 1 root root   7614 Mar 15  2011 /usr/sbin/pure-config.py
-rwxr-xr-x. 1 root root 216500 Mar 15  2011 /usr/sbin/pure-ftpd
-rwxr-xr-x. 1 root root  34984 Mar 15  2011 /usr/sbin/pure-ftpwho
-rwxr-xr-x. 1 root root  18156 Mar 15  2011 /usr/sbin/pure-mrtginfo
-rwxr-xr-x. 1 root root  20692 Mar 15  2011 /usr/sbin/pure-quotacheck
-rwxr-xr-x. 1 root root  24812 Mar 15  2011 /usr/sbin/pure-uploadscript
__________________
Eric Pretorious,
Truckee, CA

Last edited by epretorious; 18th January 2012 at 19:17. Reason: minor edit
Reply With Quote
  #7  
Old 18th January 2012, 19:20
madlars madlars is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, the instructions you followed are somewhat the same, but just the part im having trouble with is different from your version.
Reply With Quote
  #8  
Old 18th January 2012, 19:23
epretorious epretorious is offline
Member
 
Join Date: Feb 2010
Location: Truckee, CA
Posts: 33
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to epretorious Send a message via Yahoo to epretorious Send a message via Skype™ to epretorious
Cool

Quote:
Originally Posted by madlars View Post
Ok I will try those instructions, how do i get to the configuration file?
The first command will produce more concise output. The second command requires less typing:
Code:
grep -B1 -A2 -i tls /etc/pure-ftpd/pure-ftpd.conf
...or...
Code:
cat /etc/pure-ftpd/pure-ftpd.conf
__________________
Eric Pretorious,
Truckee, CA
Reply With Quote
  #9  
Old 18th January 2012, 19:32
madlars madlars is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

same message as before "file or folder does not exist"
Reply With Quote
  #10  
Old 18th January 2012, 19:44
epretorious epretorious is offline
Member
 
Join Date: Feb 2010
Location: Truckee, CA
Posts: 33
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to epretorious Send a message via Yahoo to epretorious Send a message via Skype™ to epretorious
 
Exclamation

Quote:
Originally Posted by madlars View Post
same message as before "file or folder does not exist"
Sorry - I should have adjusted for the Ubuntu/Debian way of doing things.

Please include the directory listings of /etc/pure-ftpd/ & /etc/pure-ftpd/conf and the contents of the files /etc/pure-ftpd/conf/pure-ftpd.conf & /etc/pure-ftpd/conf/TLS.

REFERENCE
The Perfect Server - Ubuntu 11.10 [ISPConfig 3] - Page 4
__________________
Eric Pretorious,
Truckee, CA

Last edited by epretorious; 18th January 2012 at 19:47. Reason: Corrected path for Ubuntu/Debian systems.
Reply With Quote
Reply

Bookmarks

Tags
ispconfig, ispconfig 3, pureftpd, ubuntu 11.10

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perfect Server Ubuntu 10.04 webmail issue sidcypher HOWTO-Related Questions 1 5th May 2011 17:11
Virtual Users+Postfix+Courier+CentOS problem telnet localhost 25 stinson HOWTO-Related Questions 11 5th February 2011 14:57
ISPConfig3 mail doesn't work Marr General 6 1st September 2010 10:32
I don't recieve mail. privir Installation/Configuration 2 3rd June 2009 23:08
[The Perfect Server - Fedora 10 [ISPConfig 3]] - PureFTPd Blaasbalg HOWTO-Related Questions 1 10th May 2009 18:54


All times are GMT +2. The time now is 14:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.