Perl scripts?
I have an apache server running under windows. I installed PHP and mod_perl. Now, I'm trying to let the server execute Perl scripts. THe only problem is , that the server won't parse the Perl. Any hints on what to do? I placed the following code in my httpd.conf:
ScriptAlias /perl/ "d:/www/Perl/bin"
Action application/x-httpd-perl "/perl/perl.exe"
AddType application/x-httpd-perl .pl .cgi
Also, mod_perl works.
Mark Hensler posted this at 19:19 — 28th June 2001.
He has: 4,048 posts
Joined: Aug 2000
What does your shebang line look like? (#!d:\www\Perl\bin)
I've successfully installed Perl on Win32 running Apache... but I didn't use mod_perl. I used ActivePerl from ActiveState.
Mark Hensler
If there is no answer on Google, then there is no question.
Gyrbo posted this at 07:46 — 29th June 2001.
They have: 105 posts
Joined: Jun 2001
Well, to run mod_perl, you need (Atcive)Perl. SO that's what I installed. OK, thanks for that shebang line. I thought it was #!d:/...
Mark Hensler posted this at 07:51 — 29th June 2001.
He has: 4,048 posts
Joined: Aug 2000
I'm not sure if it matters what direction the slashes lean.
Anyway, on my machine, I had to include "perl.exe" on the end of my shebang line.
Gyrbo posted this at 16:47 — 29th June 2001.
They have: 105 posts
Joined: Jun 2001
I needed too. But now it works fine. Well, at least with that line. I enabled direct execution from the registery, way easier.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.