Hello,
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
ServerAdmin
webmaster@dumbbox.dyndns.org
DocumentRoot /var/www/cgi-bin2
ServerName dl-dumbbox.dyndns.org
ErrorLog /var/log/apache/download-error_log
ScriptAlias /cgi-bin/ "/var/www/cgi-bin2/"
ScriptAlias /music/ "/usr/website/music/"
DirectoryIndex dl.pl
AddHandler cgi-script .pl
</VirtualHost>
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>";