i had same problem following i send to web host tech support as following :

Your system make change last 2 weeks make all CGI use html header with internal error 500 Customer-ReplyScript InstallationJC Sun || Client 24th Oct 2021 (16:12)I did 2 test cgi copy from website get 500 internal error as the source code :

0end5.cgi
#!/usr/bin/perl # hello.pl -- my first perl script! print "Content-type: text/html\n\n"; print <<"EOF"; <HTML> <HEAD> <TITLE>Hello, world!</TITLE> </HEAD> <BODY> <H1>Hello, world!</H1> </BODY> </HTML> EOF
0end6.cgi
#! /usr/bin/perl print "Content-type: text/html\n\n"; print "<html><body><h1>Hello World!"; print "</h1></body></html>\n"; ---------------------------- IP Address: 2603:8001:800:76c4:71a1:3e61:cc30:9e6e Nikola T.Staff24th Oct 2021 (16:27)Hello there, Thank you for contacting the FastComet Tech Support Team. I have checked out the website and I can see that it's fully reachable + on my end, as can be seen below: > https://i.imgur.com/m7msFSe.png I can see that you're attempting to run a Perl script. Please note that your service was migrated roughly 2 days ago to a new +er, more updated environment. And the Perl version was updated FROM - + 5.10.1 - TO - 5.26.3 - within the new environment I would advise you to ensure that your Perl script's syntax is accepta +ble by Perl 5.26.3, once you've ensured this and IF the script is sti +ll not operational, please provide us with the following information: 1. If you are able to provide us with a STEP by STEP guide on how to p +roduce the issue on our end so that we can investigate further, that +would be fantastic. Please also include any login details (URL, usern +ame/email, password), IF they are necessary for the troubleshooting p +rocess. 2. If possible, attach screenshots to your replies as well, so that we + can see how the case appears on your end or/and provide us with any +error messages that you might be getting. Let me know if you need further assistance. We are here to support you 24/7 Kind Regards, Nick Technical Support Team -- Website: https://www.fastcomet.com/ Facebook: https://www.facebook.com/fastcometcloud/ Twitter: https://twitter.com/fastcometcloud/ Leave a Review for me: https://www.trustpilot.com/review/www.fastcomet +.com You rated this response: JC SunClient24th Oct 2021 (22:55)hi Nikola you are welcome to login my + file manager user name password as blackja2 @JyhChongSun4403 the 2 p +erl is 0end5.cgi and 0end6.cgi the error message is 500 internal error on browse and AH01264 script n +ot found or unable to stat on my error log. the easy way just copy paste my Hello World CGI do test by yourself. or you can find any cgi print HTML header from your library or interne +t prove to me it work on your new version. Best Regards Jerry Sun Ivan IvanovStaff24th Oct 2021 (23:44)Hello. Thank you for reaching back to us. If I have understood your query correctly, you experience ' Internal S +erver Error ' when accessing the following files: > http://blackjackstory.com/0end5.cgi > http://blackjackstory.com/0end6.cgi I fixed the files' permissions, as well as reviewed all of the server +logs, however, I was unable to locate any error messages listed. That being said, the 500 internal server error is still encountered wh +en accessing your pages. However, in order to make sure that we are both referring the same iss +ue, please confirm that you are indeed trying, but you are unable to +access the above pages. In case I have misunderstood though, please accept my sincerest apolog +ies and elaborate further, so we can assist you accordingly. Once your request and end goal have been clarified, we will thoroughly + review your case and assist you further. Thank you for your understanding on the matter. We remain available and at your disposal. Kind Regards, Ivan I. FastComet Tech Support -- Website: https://www.fastcomet.com/ Facebook: https://www.facebook.com/fastcometcloud/ Twitter: https://twitter.com/fastcometcloud/ Leave a Review for me: https://www.trustpilot.com/review/www.fastcomet +.com You rated this response: JC SunClient27th Oct 2021 (16:49)Thanks Ivan I. did the test but still + not able to locate the problem, After install the new version of perl my cgi program not working Include my cgi guestbook on my library guestbk.cgi it print HTML Use <<END to start and end of HTML it is very basic function On CGI . Perl version was updated FROM - 5.10.1 - TO - 5.26.3 - within the new +environment I want prove to you the new version have problem search google 2 Hello world cgi program and copy paste to my library 0end5.cgi And 0end6.cgi. I advise you restore Perl to 5.10.1 all my program will work, Just do the test for few days, you still can backup to 5.26.3 Or you can selected different perl version, because perl 5.26.3 has bug on it I search google cgi print html harder error I can see other User has same problem : CGI http header error https://www.perlmonks.org/?node_id=262641 EOF

In reply to Re: CGI http header error by blackjackstory.com
in thread CGI http header error by martymart

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.