Web Hosting Talk







View Full Version : Symlink problem


sparkle
11-21-2002, 09:02 AM
ran into a problem when moving /usr to /home/usr to reduce the filesystem

i moved /usr to /home/usr and then symlinked

ln -s /home/usr /usr

however problems have arisen in that perl/cgi scripts are no longer allowed server wide. scripts that was available and was being used successfully now give back a 403 your not allowed page.

on checking the error report there is a constant error that the symbolic link to /usr/ is not allowed.

any help?

CmptrWz
11-21-2002, 10:15 AM
Symbolic links if owner matches must be on, and noone but root matches root.................

I think that might be it............

sparkle
11-21-2002, 10:19 AM
Originally posted by CmptrWz
Symbolic links if owner matches must be on, and noone but root matches root.................

I think that might be it............

So i need to check if owner matches is on? so where / how do i do this.

CmptrWz
11-21-2002, 10:44 AM
Good question, I know it is an "option" setting, like indexes. Check httpd.conf and access.conf.

Note, however, that it IS a security hole to change it to symlinks full, even if the owner doesn't match.

sparkle
11-21-2002, 12:04 PM
no joy ...cant seem to find any reference to that in httpd or access conf

CmptrWz
11-21-2002, 03:44 PM
Try setting allowoverride to ALL or include options

Then make a .htaccess file in the directory you see the problem in for a test.

I forget the exact command but there is an option like

Options +Indexes

That you can use, only for symbolic links. There is a only if owner match version and an all version. Use the ALL version and see if that helps.