The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/etc/proftpd.conf is missing VirtualHost entries after account creation

Discussion in 'General Discussion' started by raysolomon, Jan 28, 2012.

  1. raysolomon

    raysolomon Member

    Joined:
    Oct 12, 2006
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    nevermind. I figured it out.
     
    #1 raysolomon, Jan 28, 2012
    Last edited: Jan 28, 2012
  2. john330

    john330 Member

    Joined:
    Feb 8, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Can you share your solution as we are also facing this problem.

    Thanks.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you provide some more details on the exact problem you are facing? Do you notice any specific error messages in the cPanel error log during account creation? The cPanel error log is located at:

    Code:
    /usr/local/cpanel/logs/error_log
    Thank you.
     
  4. john330

    john330 Member

    Joined:
    Feb 8, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    We are facing two problems. First, the new account is not showing in proftpd.conf. Second, proftpd.conf gets corrupted when a new account is created causing ftp outages for a handful of accounts. The corruption is in the ip addresses in the VirtualHost tag - the last octet is wrong.

    I see nothing in the error_log that correlates to proftpd.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you submit a support ticket so we can check further?

    Submit A Ticket

    Please post the ticket number here so we can update this thread with the resolution when available.

    Thank you.
     
  6. john330

    john330 Member

    Joined:
    Feb 8, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Ticket # is 2272473
     
  7. raysolomon

    raysolomon Member

    Joined:
    Oct 12, 2006
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Sure. Let me explain. I thought the /etc/proftpd.conf was supposed to have a virtual host entry for each domain hosted on the server. So I created a php script that read the /etc/httpd/conf/httpd.conf file and generated a new /etc/proftpd.conf file with a virtualhost entry for every domain in the proper format. This is when I thought it should have fixed the problem. But when I restarted proftpd I got a bunch of error messages stating the IP was already bound to a port blah blah blah. I later figured out reading documentation from the proftpd web site that there can only be one virtualhost entry per IP address. So this means all but one shared hosting account that is on the same shared IP is not supposed to be in the /etc/proftpd.conf.
    I also switched to pureftpd and saw that its configuration does the same thing essentially.

    So it was a matter of misunderstanding the /etc/proftpd.conf file. I thought there was a problem, but in fact there wasn't.
     
    #7 raysolomon, Feb 8, 2012
    Last edited: Feb 8, 2012
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Thank you for the details. Indeed /etc/pureftpd.conf is a configuration file for pure-ftpd and nothing to do with VirtualHost entries, since those are an Apache configuration directive. The pure-ftpd users (username and password) are listed in /etc/proftpd/ folder (even though called /etc/proftpd, the users and passwords stored there are also used by pure-ftpd).

    Anyway, glad you got it working.
     
Loading...

Share This Page