Problem with symlinks
Moderator: General Moderators
Problem with symlinks
I am working on a website that creates a temporary directory when a user logs in. When they browse the site, any content they would be accessing should be getting symlinked to that temporary directory so they never know the exact directory the files are in. I am able to create the directory just fine, and create the symlinks as well, but when a user tries to click on the actual content, they get an error... "You don't have permission to access /users/ecc3d1beebc167a61504f4c68db90309/20050511_1_1_8.mpg on this server." I was told this is a very common problem, but I haven't the slightest clue how to resolve it. Can't someone please help me out? I've tried setting the temporary directory AND the actual content directory to 777, and it still gives the same error. I'm running php 4.3.11 and Apache 2.0.54 on kernel 2.4.30-grsec. Thanks in advance for any help.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
If you use a shell like bash.. You can enable coloring... Broken symlinks will appear in red 
Here's a part from my .bashrc
Here's a part from my .bashrc
Code: Select all
# If running interactively, then:
if ї "e;$PS1"e; ]; then
# enable color support of ls and also add handy aliases
eval `dircolors -b`
alias ls='ls --color=auto'
alias dir='ls --color=auto --format=vertical'
alias vdir='ls --color=auto --format=long'
fi