Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004

    Question Unanswered: running a perl script

    i'm trying to make a webpage on a unix server with perl scripts. my local machine is running win xp. my remote directory structure is /public_html/cgi-bin. i have a script to test for perl support called perl_test.cgi. the first line in this cgi is #!/usr/bin/perl, which is the correct path to the perl interpreter. when i telnet to the unix server and run the script, it works just as expected. however, when i go to the desired url (, i recieve a download prompt. any suggestions? thanks, lui

  2. #2
    Join Date
    Jan 2004
    This looks like an error in the webserver configuration. The webserver doesn't know what to do with a .cgi-file...

    is cgi activated for the folder where your script is stored??

    There must stand something like this in the configuration of your webserver (if you use the Apache) - you have to adapt this to your needs:

    # the following line is optional
    ScriptAlias /cgi-bin/ /public_html/cgi-bin/

    <Directory /public_html/cgi-bin/>
    Options +ExecCGI
    AddHandler cgi-script .cgi .pl
    </Directory> - The German Perl-Community

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts