The code I am trying to run is trivial:
#!/bin/perl print "Content-type: text/html\n\n"; print "hi";
When typing both type and which perl, I get /bin/perl. I changed the code to now use that path and I still get the error message :
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@thed87.tempdomainna +me.com and inform them of the time the error occurred, and anything y +ou might have done that may have caused the error.
More information about this error may be available in the server error log.

Unfortunately there is no webmaster - I'm it. I have a huge site that I am porting from FreeBSD to Solaris and I am just trying to get a simple program to run.

I have had absolutely no experience installing or manipulating perl. The FreeBSD environment was a managed hosting environment where everything was standard and maintained by the host.

update (broquaint): removed <br>s in <code> tags and put <code> tags around the error message


In reply to Re: Re: Re: Re: print statement does not work by Hammy
in thread print statement does not work by Hammy

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.