Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old April 30th, 2008, 04:38 AM
Familiar Sight
 
Join Date: Jan 2008
Posts: 170
Default error running cgi scripts

hi,

i'm trying to test my cgi script a simple one
but i don't seem to be able to run this script from cpan

Expand|Select|Wrap|Line Numbers
  1.   #!/perl/bin/perl 
  2.    use strict;
  3.  
  4.    $q = new CGI;                        # create new CGI object
  5.    print $q->header,                    # create the HTTP header
  6.          $q->start_html('hello world'), # start the HTML
  7.          $q->h1('hello world'),         # level 1 header
  8.          $q->end_html;                  # end the HTML
  9.  
i got a 500 internal server error
and in my error logs i got:

C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/1.cgi is not executable; ensure interpreted scripts have "#!" first line

(9)Bad file descriptor: don't know how to spawn child process: C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/1.cgi

pls help?
Reply
  #2  
Old May 5th, 2008, 04:29 AM
Familiar Sight
 
Join Date: Jan 2008
Posts: 170
Default

hm..anyone who can help?
Reply
Reply

Bookmarks

Thread Tools

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles