Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-14-2004, 06:29 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 9

Rep: Reputation: 0
Apache File Permission Strange Problem

I'm currently running an Apache webserver off my old (slackware) linux box. I have some file I want to share but I'm getting a weird permission problem. The httpd.conf virtualhost handler looks like this:

<VirtualHost *>
Options Indexes FollowSymLinks ExecCGI
IndexOptions FancyIndexing IconsAreLinks
DocumentRoot /var/www/cgi-bin2
ErrorLog /var/log/apache/download-error_log
ScriptAlias /cgi-bin/ "/var/www/cgi-bin2/"
ScriptAlias /music/ "/usr/website/music/"
AddHandler cgi-script .pl

The files to be shared are in /usr/website/music. If I set the DocumentRoot to that directory in the virtualhost handler above then I get a directory listing and I can view and download all I want. However if I use what's listed above (which links to a Perl script that simply creates links to these files to be downloaded) then I get a permission error. I know the files are chmoded correctly. The exact error in the error log is: "file permissions deny server execution: path/file.ext". The files that are to be shared are actually on a Windows machine and are shared via a Samba server (however I do not think this makes a difference). What could be the problem? Thanks.

This is the line from the perl script that prints out the link:

print "<a href=/music/filename.ext">Download</a>";

Last edited by hcubed; 05-14-2004 at 06:32 PM.
Old 05-15-2004, 01:09 AM   #2
LQ Newbie
Registered: Sep 2003
Posts: 9

Original Poster
Rep: Reputation: 0
I found the problem. I needed to be using "Alias" instead of "ScriptAlias" in the virtualhost handler for /music/. Thanks anyway.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
strange fglrx permission problem 0pal_t0ad Linux - Hardware 2 07-07-2005 01:13 AM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
Strange permission problem keripukki Linux - General 3 10-09-2004 11:02 PM
Very strange permission problem jlturbos Linux - General 2 03-11-2004 09:43 AM
strange vfat permission problem nObRaIn Linux - Newbie 2 12-29-2003 07:20 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration