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.

Can't downloade or edit a file on ftp

Discussion in 'General Discussion' started by khorinis, Oct 9, 2010.

  1. khorinis

    khorinis Well-Known Member

    Joined:
    Aug 15, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Hello,
    i tried to edit a .php file from my ftp and if i do it i get a disconnect and my ftp client reconnect instantly but then it get a login failure error. Then i thought it could be because i use suphp and suexec and haven't done the following but it hasn't helped:

    ( i have done that via ssh as root)

    Why i can't edit or download the file?
     
  2. 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
    Hello,

    Is it only PHP files (those ending in .php) where this is happening and not any other type of file? Also, which FTP client are you using?

    Thanks.
     
  3. khorinis

    khorinis Well-Known Member

    Joined:
    Aug 15, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Hello,
    i'm using Filezilla and it seem to be all files in public_html folder(php, htaccess, etc).
     
  4. 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
    What operating system are you running on the machine?

    Code:
    cat /etc/redh*
    I'm wondering if you are on CentOS 3 or Fedora and your pure-ftpd version is the one where it can have issues working with CentOS 3 or Fedora. If you are, you could simply switch to proftpd in WHM > FTP Server Selection

    Please also provide the following:

    Code:
    rpm -qa | grep -i ftp
    Finally, please attach the contents of your /etc/pure-ftpd.conf file.
     
  5. khorinis

    khorinis Well-Known Member

    Joined:
    Aug 15, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    I'm running 'CentOS release 5.5 (Final)'.

    Output of rpm -qa | grep -i ftp:
    /etc/pure-ftpd.conf is:

    I don't know why it won't work. Before it worked already fine but now it stopped with working fine...
     
  6. 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
    There is a big issue in your ftp file as it is repeating the same sections multiple times. Look it over and see how many areas repeat. That isn't typical. If yours actually looks like that, then there's definitely an issue with the contents.

    I've attached the contents of what your file would look like if it weren't repeating areas as a txt attachment to this post. If the one you pasted is what yours looks like in /etc/pure-ftpd.conf area, then you should back it up:

    Code:
    cp /etc/pure-ftpd.conf /etc/pure-ftpd.conf.bak
    Then remove the existing contents and replace them with the example I provide.

    Please restart pure-ftpd after doing the change:

    Code:
    /etc/init.d/pure-ftpd restart
     

    Attached Files:

  7. khorinis

    khorinis Well-Known Member

    Joined:
    Aug 15, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Hello,
    i'm sorry if it's repeating. I copied the sites manually and maybe i copied something multiple. I don't think the config is the problem because it's the standard one / just changed through WHM - not manually via SSH.
     
  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
    Could you open a ticket at this point about it? Just use the link in my signature or use WHM > Support Center > Contact cPanel

    Since your configuration didn't have anything enabled that isn't standard in it and your FTP version and OS version are also compatible, it's probably going to be quicker to have you open a ticket for us to investigate. Feel free to post your ticket number here after opening for reference.
     
Loading...

Share This Page