Forum

perl with hiawatha on win 10

Kjartan
13 September 2018, 23:44
I cannot get my perl pages to work with hiawatha hosted on win10.
I have this in the config:
CGIhandler = c:\Perl64\bin\perl.exe:pl
ExecuteCGI = yes

But it doesnt work. (ActivePerl is installed and working in windows10)
Any ideas?
mark_henry
14 September 2018, 19:07
I was getting the same issue as I have installed the ActivePerl in windows 10 but can not get the Perl pages to work with Hiawatha which is hosted on Windows 10. So, I instantly contact contact microsoft and they have solved this issue. So, you can contact them as they can solve your issue too for sure.
Kjartan
15 September 2018, 11:24
I got it working ! I had to put:
#!C:\Perl64\site\bin\perl.exe

use CGI;

At the top of my .pl files ;-)

A nice day is wished upon all !
http://helledussen.com/mp3/Limbomusic/2018/Limbomusic-U_and_me_in_harmony.mp3
Hugo Leisink
16 September 2018, 10:34
'#!C:\Perl64\site\bin\perl.exe' and 'CGIhandler = c:\Perl64\bin\perl.exe:pl' contain different paths to perl.exe. Could that be the issue?
Kjartan
18 September 2018, 12:45
Hey Hugo !
I guess NOT actually - It seems perl is working in win10 regardless of the path to perl at the top of the perl-doc.
I tried just now putting a different path (c:\Perl64\bin\perl.exe in perl doc and #!C:\Perl64\site\bin\perl.exe in hiawatha.conf)
and it worked fine. SO - the thing that DID it was apparently to put:
use CGI;
in the .pl file ! WIthout that - I just got the 500 error.
Kjartan
18 September 2018, 12:49
I've always used puppy linux as OS on my webserver - and then there is apparently no need for: "use CGI;" in the .pl doc but on win10 it seems it HAS to be there.
Allowed BBcodes:
[quote]
[code]
[config]
[url]
[color]
[size]
[img]
[b]
[i]
[u]
[s]
[list]
[ul]
[ol]
[*]