Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot download files from my page

Status
Not open for further replies.

proggybilly

Programmer
Apr 30, 2008
110
US
I am setting up a page to download files that clients can access. My page is located in /srv/I have a subdirectory under / called downloads. I have a symbolic link to that subdirectory in srv/
If I run cd /srv/ I see everything that is listed in the /download directory. How ever when I click on the hyperlink to download the file, the URL shows the correct path but I get an access forbidden error.

Any help is greatly appreciated.
 
i'd guess the permissions on the linked directory do not allow the php process to read from it. remember the permissions of the cli are not the same as those under which the web server runs (usually)
 
I am trying to figure it out, everything is owned by I even did a chmod 777 on everything... I have FollowSymLinks enabled in apache2. This is frustrating. If I move the download directory directly under /srv/ I can access it with no problem. Still everything owned as and chmod 775.

Wierd how it won't follow the symbolic link even though it is set up to do so.
 
Problem fixed! Had to put followsymlinks as an option in the site.conf file
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top