logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: File sharing using A HREF
Author
bugz



Joined: 06 May 2008
Posts: 10
Location: Worcester, MA, USA

PostPosted: Tue 12 Aug '08 22:23    Post subject: File sharing using A HREF Reply with quote

Hi there,
I have apache installed and running on my system. I have configured it to run cgi-scripts.
I would like to let people download a file available on my server.
I provide link for the same using

<p align='Center'><b></u>Menu File</u></b><br>
<a href= '/Files/Menu.pl' align="Center">Click Here to Download</a><br>
(right-click and select 'save as')<br></p>

when i click on it or choose save as it provides me the following error
"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, abc@xyz.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log"

This is the error in the log:
[Tue Aug 12 15:58:17 2008] [error] [client 0.0.0.81] attempt to invoke directory as script: C:/Apache Software Foundation/Apache2.2/cgi-bin/Files/

[Tue Aug 12 16:02:28 2008] [error] [client 0.0.0.81] C:/Apache Software Foundation/Apache2.2/cgi-bin/Files/Menu.pl is not executable; ensure interpreted scripts have "#!" first line,
referer: http://mysite.org/cgi-bin/CallingFile.pl

[Tue Aug 12 16:02:28 2008] [error] [client 0.0.0.81] (9)Bad file descriptor: don't know how to spawn child process: C:/Apache Software Foundation/Apache2.2/cgi-bin/Files/Menu.pl,
referer: http://mysite.org/cgi-bin/CallingFile.pl

Could someone guide me with what am i doing wrong?

Pardon me for anonymousing my client and server information.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 13 Aug '08 2:44    Post subject: Reply with quote

don't know how to spawn child process = I cannot find perl on the system

first line of file must have shebang #!/path/to/perl (e.g. #!c:/perl/bin/perl.exe or where perl is installed on the system) Is perl installed?

others should clear up once this has been taken care of.
Back to top


Reply to topic   Topic: File sharing using A HREF View previous topic :: View next topic
Post new topic   Forum Index -> Apache