webForumDet fria alternativet

Active Perl på IIS 6.x

Webbservrar

4 svar · 181 visningar · startad av mattiasnordin

Medlem sedan maj 20012 080 inlägg
Frågan#1

Hej,

Jag har försökt att installera Perl på en IIS6 webserver. Har laddat hem den nyast versionen av Active Perl. Installationen är väldigt enkel. Men är det något övrigt som måste åtgärdas...

Inga av mina tidigare perlskript fungerar. IIS säger:

The page cannot be found

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

PS Jag tillåter Perl CGI Extension och Perl ISAPI Extension i web service extensions DS

Medlem sedan maj 20012 080 inlägg
#2

Perl package manager klarar av att köra scripten. Men inte via webservern...

Finns det några perl folk här eller bör man posta detta i perlforumet kanske ?

Medlem sedan maj 20012 080 inlägg
#3

Once Perl is installed, you’ll need to setup a Web Service Extension mapping in IIS. So, go ahead and open up IIS Manager (start>run>inetmgr), and then point to Web Service Extensions. Right click, and go to Add New Web Service Extension. Give it a useful name, i.e. Perl. Then, click Add, and browse to your Perl binary (Perl.exe). There’s a crucial extra piece here – tagging a “%s” %s on the end. For example: ‘D:\Perl\bin\Perl.exe “%s” %s’.

When the Perl installer was run, it should have setup the script mapping in the IIS home directory config, but if not, you’ll have to do that too. Right click the virtual directory/application/website you want to configure the Perl scripts for, go to the home directory tab, and then click Configuration down towards the bottom. If *.pl isn’t in the list, click add, and then put the same command in for executable as you did in the Web service extension (i.e. D:\Perl\bin\Perl.exe “%s” %s’). The extension is .pl, and go ahead and limit verbs to ‘GET,HEAD,POST’. Finally, check off script engine and verify that file exists.
That’s in for Perl, PHP should be similar, but I haven’t tried it yet.

Citat från: http://weblogs.asp.net/bdesmond/archive/2003/09/08/26801.aspx

Jag noterade efter att jag hade läst detta att MSI installationen INTE hade associerat .PL med pearl.exe filen. Detta borde väl vara ett uppenbart fel?!

Är det någon som vet vad “%s” %s gör för nytta. Förstod inte hur man skulle lägga till detta och varför :(

Medlem sedan maj 20012 080 inlägg
#4

Efter att man har åtgärdat ovan så får jag:

CGI Timeout
The specified CGI application exceeded the allowed time for processing. The server has deleted the process.

Ett steg i rätt riktning? :( grrr...

Medlem sedan maj 20012 080 inlägg
#5

Nu har jag installerat den senaste versionen (ActivePerl-5.8.3.809-MSWin32-x86.msi) på två helt nyinstallerade win2003 server med IIS6 + alla servicepacks.
Samma symptom på båda servrarna. Installationsskriptet lägger inte till allt som behövs.

Det som saknas på båda installationerna är associationen mellan *.pl och perl.exe.

Detta göra man under "home directory" fliken och under knappen "Configuration".
Under fliken "mappings" finns en "add" knapp. Lägg där till:
Executable: C:\Perl\bin\perl.exe "%s" %S
Extension: .pl

Om man inte lägger till "%s" %S så fungerar det inte.

Hoppas att detta kan hjälpa någon annan än mig :)

281 ms totalt · 4 externa anrop · v20260731065814-full.a51de22e
117 ms — deklarationer (db)
0 ms — hämta statistik (cache)
151 ms — hämta tråd, inlägg och bilagor (db)
127 ms — ändringar (db)