traincity has asked for the wisdom of the Perl Monks concerning the following question:
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!!
|
---|