Hi.. Using windows 10, Latest strawberry download, apache 24.

I need help in associating .pl with strawberry. When I try putting localhost/cgi-bin/test.pl in browser I get this error:

Internal Server Error The server encountered an internal error or misconfiguration and was u +nable to complete your request. Please contact the server administrator at trainman@traincity.com to i +nform them of the time this error occurred, and the actions you perfo +rmed just before this error. More information about this error may be available in the server error + log.

So I go to the error log and this is what is showing:

[Mon Jun 17 18:04:55.584500 2019] [cgi:error] [pid 12736:tid 1148] (OS + 2)The system cannot find the file specified. : [client ::1:49450] c +ouldn't create child process: 720002: test.pl [Mon Jun 17 18:04:55.584500 2019] [cgi:error] [pid 12736:tid 1148] (OS + 2)The system cannot find the file specified. : [client ::1:49450] A +H01223: couldn't spawn child process: C:/mychoo/cgi-bin/test.pl

So I believe I have configured apache correctly as the correct path is C:/mychoo/cgi-bin/test.pl

I think the problem is that .pl is not associated with strawberry.

This is the test file code:

#!/usr/bin/perl use strict; use warnings; print "hi NAME\n";

I believe the path line on top should be ignored in windows, but I could be wrong.

Can anyone see what is happening and a resolution to this problem? I really need to get this going before I can continue with perl. One note in the httpd.conf file for php I have this code:

AddHandler application/x-httpd-php .php AddType application/x-httpd-php .php .html LoadModule php7_module "C:/php7/php7apache2_4.dll" PHPiniDir "c:/php7"

I think I needed that to associate .php files with php7. Is there some sort of a fix like that??

I tried changing the registry to associate .pl with strawberry but that did not work.

Thanks for any help!

One other thing, there used to be a message board perl guru or something like that. I get an error when I try to open that up now. Has that been disabled?

I'd really appreciate any help. Thanks much!!


In reply to strawberry perl on localhost windows by traincity

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.