CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: mod_perl:
Installing Perl on Apache

 



Flexor
Novice

May 11, 2002, 10:06 AM

Post #1 of 10 (15202 views)
Installing Perl on Apache Can't Post

I have recently downloaded ActiveState Perl and I think I have it up and running quite nicely. Yet, I want it to co-operate with my localhost Apache webserver, which already has PHP running as a module. Are there any specific lines I have to add to the httpd.conf file of Apache to make it recognize Perl?

Thanks in advance.


Paul
Enthusiast

May 11, 2002, 12:08 PM

Post #2 of 10 (15200 views)
Re: [Flexor] Installing Perl on Apache [In reply to] Can't Post

In a word no. If you downloaded the MSI installer for apache, httpd.conf will be already configured.


Jasmine
Administrator

May 11, 2002, 1:34 PM

Post #3 of 10 (15198 views)
Re: [Flexor] Installing Perl on Apache [In reply to] Can't Post

Look at line 554 of the httpd.conf file and uncomment the following line.

ScriptInterpreterSource registry

This will tell Apache to use the registry entry to Perl instead of needing to use the ugly #!c:/program files/perl/perl shebang.


(This post was edited by Jasmine on May 11, 2002, 1:34 PM)


Paul
Enthusiast

May 11, 2002, 3:36 PM

Post #4 of 10 (15195 views)
Re: [Jasmine] Installing Perl on Apache [In reply to] Can't Post

If you install in C:\perl then the shebang is:

#!/perl/bin/perl

Thats not so ugly :)


Flexor
Novice

May 12, 2002, 4:32 AM

Post #5 of 10 (15192 views)
Re: [RedRum] Installing Perl on Apache [In reply to] Can't Post

Okay, thanks for that. I have installed Perl in C:\Server\Perl. Does that mean the shebang line becomes: #!server\perl\bin\perl or do I need to include the full path?


Paul
Enthusiast

May 12, 2002, 4:57 AM

Post #6 of 10 (15191 views)
Re: [Flexor] Installing Perl on Apache [In reply to] Can't Post

It would/should be:

#!/server/perl/bin/perl


Flexor
Novice

May 12, 2002, 5:07 AM

Post #7 of 10 (15189 views)
Re: [RedRum] Installing Perl on Apache [In reply to] Can't Post

Okay, thanks for that!


Cure
User

Jun 8, 2002, 9:50 AM

Post #8 of 10 (15106 views)
Re: [Flexor] Installing Perl on Apache [In reply to] Can't Post

mod_perl is a unique piece of software that integrates the power of Perl with the flexibility and stability of the Apache Web server. With mod_perl, you can harness the power of the full Apache API with Perl and develop Web applications quickly, without sacrificing performance. Wink

Embed a Perl interpreter in the Apache (1.3.12) HTTP server Doug MacEachern <dougm@pobox.com> install.ppm

go to dos prompt and type -->

ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/mod_perl-legacy/mod_perl-apache_1.3.12.ppd

That will install mod_perl, then you will need to configure your apache config file called httpd.conf.

Tutorial for the config file --> http://perl.apache.org/guide/config.html





Cure


anjanesh
New User


Mar 2, 2007, 3:35 AM

Post #9 of 10 (13565 views)
Re: [Cure] Installing Perl on Apache [In reply to] Can't Post

Im on a Windows XP PC with Apache 2.0.x and ActivePerl 5.8.8 817.

Is there no simpler method to get mod_perl working like copying a dll file to C:\Perl and then adding this to the conf file ?

Code
LoadModule php5_module "c:/perl/perl2apache2.dll"

?

Just like the way its done for mod_php

Thanks.

Blog | vlbjcas | Car Crash


ProBulletin
Novice

Mar 2, 2007, 3:48 PM

Post #10 of 10 (13564 views)
Re: [anjanesh] Installing Perl on Apache [In reply to] Can't Post

Read this:

http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages

Specifically look at the bit regarding mpinstall


Regards,
Paul Wilson
ProBulletin Board: http://www.probulletin.com/

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives