Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    830
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Try using the full path when making the symlink. FTP is weird like that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. kdean

    kdean Well-Known Member

    Joined:
    Oct 19, 2012
    Messages:
    280
    Likes Received:
    17
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice