File Manager Error With Symbolic Links

okibi

New member
Joined
Sep 20, 2005
Messages
2
I have multiple hard drives in my server, with the second two set up as /home2 and /home3. The problem comes when I need to add more users. I can add the user and move their home directory over to /home2 or /home3 and use a symbolic link in /home and the pages will load fine. The problem comes when that user tried to use File Manager in directadmin. When uploading, it complains about there being a symbolic link and refuses to upload the files. How can I fix this or get around this problem? Thanks!
 
I am having the same problem. Any help on this would be greatly appreciated!!

Here is the error I get when attempting to upload a file:

An Error Occurred

--------------------------------------------------------------------------------

Details

There is a symbolic link in that path. The path must be a full non-linked path.
 
Sorry to bring up an old subject but my host is having the same problem. I have a symbolic link in my account but the file manager won't show it as a link, it is as if it simply doesn't exist. Accessing the account via FTP and SSH proves it exists. The website will function just fine with it.

Please help us?
 
No, I just would like for it to show up in the file manager and be able to use it like a normal link. Just like (~/public_html) takes you to (~/domains/defaultdomain/public_html). That link is visiable in all areas, ftp, ssh, httpd, and the DP file manager.
 
Last edited:
I'm on CentOS using the latest build of DA and symbolic links seem to work fine for me in the File Manager and in FTP. I use them a lot to create things like a link to the user's Webalizer stats in their public_html directory and other things. I have not had any problems at this point; none that I am aware of anyhow. One thing to keep in mind though is that the symbolic link needs to be owned by the user that you created the symbolic link for. For example, I run the following whenever I setup new domains:

Code:
#!/bin/sh
 
#Create web link for domain usage stats
DIR=/home/$username/domains/$domain/public_html
cd $DIR
ln -s ../stats webstats
chown -h $username:$username webstats

Check to make sure that your symbolic links are owned by the user and let us know if that is the problem. If they aren't then use the chmod command with the -h switch, as shown above, to change the ownership on the symbolic links.

Hope this helps.
 
Last edited:
I tried what you said by changing the ownership of the symbolic link but it still didn't appear. The link also has read, write, and execute permissions for all users (0777). Below is a screenshot, slightly edited, of the folder that the link needs to appear on in the DA file manager and proof that the link exists by ssh'ing to the folder with the link.

http://i37.photobucket.com/albums/e52/msanangelo112/screens/directadmin-symbolic-link-not-showi.jpg

EDIT: It linked to the thumbnail, dag nabit. The problem is fixed.
 
Last edited:
Whether or not apache follows links at all is a configurable option. Check your main httpd.conf file and perhaps your user-specific httpd.conf files.

Jeff
 
Apache follows the links, my second site has a link that links to the primary sites folder to allow me to setup a shared user database. I'm just wondering why the DA file manager won't show them.
 
Might be a permissions issue. If you can't find the problem you should probably contact DirectAdmin support.

Jeff
 
Back
Top