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.

Problem with symlink

Discussion in 'General Discussion' started by Tariq911, Mar 19, 2014.

  1. Tariq911

    Tariq911 Registered

    Joined:
    Mar 11, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    I have symlink's on my site from years. Lately I noticed that if I clicked on the symlink using ftp I will get error:
    550 test: No such file or directory

    But on my web the symlink still work fine.

    But the normal symlink that comes with my site like @www for public_html is working fine. I think that mean the way I made my symlink's is not working anymore with FTP.

    I am using this command:
    ln -s PathToFolder/Folder Folder

    Please advice

    Best regards,
    Tariq
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Try using the full path when making the symlink. FTP is weird like that.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    It's possible you are noticing a change that started with cPanel version 11.40. The 'virtual chroot' feature of Pure-FTPd is now disabled by default. Thus, chroot becomes "/" for symlinks. For example, a symlink to /etc, will now point to /home/$username/public_html/ftpuser/etc.

    Thank you.
     
  4. kdean

    kdean Well-Known Member

    Joined:
    Oct 19, 2012
    Messages:
    262
    Likes Received:
    12
    Trophy Points:
    18
    Location:
    Orlando, FL
    cPanel Access Level:
    Root Administrator
    Also check to see if the symlink is owned by the user. If you were shelled in as root it may be owned by root.

    chown -h username symlink
     
Loading...

Share This Page