OK, I just signed up with this SMALL hosting place and I m having problems running CGI's. The admin says its my script, not the server.

Heres the script(s) variations ive tried:
#!/usr/bin/perl /perl OR #!/usr/bin/perl OR #!/usr/local/bin/perl #use CGI::Carp qw(fatalsToBrowser); #use CGI; #$q = new CGI; #print $q->header(-type=>'text/html',-accept=>'*/*'); #print "Content-type: text/html\n\n"; print <<END; Content-type: text/html <html> </html> END

Tell me thats not BASIC to run on anything CGI?
I get these errors:
*****(I.E. error_log VIA server):******
[Fri May 17 15:58:45 2002] [error] [client 12.122. 366.335] Premature end of script headers: /home/virtual/blake/home/htt +pd/cgi-bin/test.cgi
*****and on the screen (I.E browser window):*****
Internal Server Error The server encountered an internal error or misconfiguration and was u +nable to complete your request. Please contact the server administrator, blah@blah.com and inform them + of the time the error occurred, and anything you might have done tha +t may have caused the error. More information about this error may be available in the server error + log.

*******Excerpt from the httpd.conf file:*******
<VirtualHost 12.34.56.788:80> ServerName www.blah.com ServerAlias blah.com *.blah.com ServerAdmin blah@blah.com DocumentRoot /home/virtual/blake/home/httpd/html User blake Group blake Redirect /admin https://blah.com:19638/webhost/services/virtualhos +ting/siteadmin Redirect /user https://blah.com:19638/webhost/services/virtualhost +ing/useradmin UserDir /home/virtual/blake/home/*/public_html AliasMatch ^/users/([^/]+)/?(.*) /home/virtual/blake/home/$1/publi +c_html/$2 ScriptAlias /cgi-bin/ /home/virtual/blake/home/httpd/cgi-bin/ CustomLog /home/virtual/blake/var/log/httpd/access_log combined ErrorLog /home/virtual/blake/var/log/httpd/error_log <Directory /home/virtual/blake/home/httpd/html/> Allow from all AllowOverride All Order allow,deny Options Includes </Directory> </VirtualHost>

also, any know the command to find the perl path(all in case) VIa telnet?

Any suggestions, except find a NEW host.
Charles
*yes they are uploaded VIA ftp Ascii

In reply to OK, tell me WHY, this is only a hello world script by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.