You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by R Joseph Wright <rj...@speakeasy.org> on 2000/03/31 23:29:35 UTC
installing with apache
I just installed mod_perl using these instructions (from INSTALL.apaci):
$ gunzip <apache_1.3.X.tar.gz | tar xvf -
$ gunzip <mod_perl-1.X.tar.gz | tar xvf -
$ cd mod_perl-1.X
$ perl Makefile.PL \
APACHE_PREFIX=/path/to/install/of/apache \
APACHE_SRC=../apache-1.3.X/src \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1 \
APACI_ARGS='[...]' \
[...]
$ make
$ make test
$ make install
For me, "make" didn't work until I first went to the apache source tree and
did ./configure. I also added some options to that configure, such as
--enable-module=most \ --enable-shared=max. I hope I did that correctly
(?).
After having compiled mod_perl and apache together, shouldn't mod_perl be
enabled in httpd.conf? It isn't. Have I done things correctly?
Re: installing with apache
Posted by Bill Moseley <mo...@hank.org>.
At 12:51 AM 04/02/00 -0800, R Joseph Wright wrote:
>On Sat, 1 Apr 2000, Buddy Lee Haystack wrote:
>
>> Have you had a chance to look over the excellent documentation located
at [http://perl.apache.org/guide/install.html]?
>
>Yes, it's very good documentation, but nowhere do I find where it tells
>what line to put in httpd.conf and where. I get the sense from reading the
>docs that if you compile mod_perl statically into apache there is no extra
>configuration necessary. I just can't find it, maybe I'm too tired |-O.
You don't have to turn mod_perl "on", but you do have to configure
httpd.conf to use mod_perl, of course. And that's described at
http://perl.apache.org/guide/config.html
Bill Moseley
mailto:moseley@hank.org
Re: installing with apache
Posted by Buddy Lee Haystack <ha...@surfree.com>.
Depending on your particular setup this will probably vary a bit. I'm a RedHat user & find that the mod_perl DSO module makes my life a bit easier, although a majority of mod_perl users roll their own, and swear by mod_perl's increased stability &
performance.;-)
I checked the "Apache Bible," and you should get a good start on getting your system running by adding a couple of lines to your httpd.conf file, but use your own particular directory structure.
**********EDIT the "httpd.conf" file by adding the following lines...
ScriptAlias /perl/ "/home/httpd/cgi-bin/"
Alias /perl/ /home/httpd/cgi-bin/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
*********************************************
I use my setup to test, so I execute both mod_perl & standard perl scripts from the same CGI directory...
Now, anything that is accessed as http://mysite.com/perl/perlscript.cgi will
run as a mod_perl script, and anything accessed as http://mysite.com/cgi-bin/perlscript.cgi will run as a non_mod_perl script.
Use this setup only if you want to test
scripts as both normal cgi & mod_perl scripts, otherwise you'll need to point
the "Alias /perl/ /home/httpd/cgi-bin/" line & "ScriptAlias /perl/
"/home/httpd/cgi-bin/" line to point to another CGI directory of your choice.
Hope this helps!
R Joseph Wright wrote:
>
> On Sat, 1 Apr 2000, Buddy Lee Haystack wrote:
>
> > Have you had a chance to look over the excellent documentation located at [http://perl.apache.org/guide/install.html]?
>
> Yes, it's very good documentation, but nowhere do I find where it tells
> what line to put in httpd.conf and where. I get the sense from reading the
> docs that if you compile mod_perl statically into apache there is no extra
> configuration necessary. I just can't find it, maybe I'm too tired |-O.
>
> > R Joseph Wright wrote:
> > >
> > > On Fri, 31 Mar 2000, Doug MacEachern wrote:
> > >
> > > > > After having compiled mod_perl and apache together, shouldn't mod_perl be
> > > > > enabled in httpd.conf? It isn't. Have I done things correctly?
> > > >
> > > > no, you need to add the mod_perl configuration to httpd.conf yourself.
> > >
> > > Then here is part II of the question:
> > >
> > > Where do I tell it to load mod_perl? I know the order in which modules are
> > > loaded is important.
> >
> >
Re: installing with apache
Posted by R Joseph Wright <rj...@speakeasy.org>.
On Sat, 1 Apr 2000, Buddy Lee Haystack wrote:
> Have you had a chance to look over the excellent documentation located at [http://perl.apache.org/guide/install.html]?
Yes, it's very good documentation, but nowhere do I find where it tells
what line to put in httpd.conf and where. I get the sense from reading the
docs that if you compile mod_perl statically into apache there is no extra
configuration necessary. I just can't find it, maybe I'm too tired |-O.
> R Joseph Wright wrote:
> >
> > On Fri, 31 Mar 2000, Doug MacEachern wrote:
> >
> > > > After having compiled mod_perl and apache together, shouldn't mod_perl be
> > > > enabled in httpd.conf? It isn't. Have I done things correctly?
> > >
> > > no, you need to add the mod_perl configuration to httpd.conf yourself.
> >
> > Then here is part II of the question:
> >
> > Where do I tell it to load mod_perl? I know the order in which modules are
> > loaded is important.
>
>
Re: installing with apache
Posted by Buddy Lee Haystack <ha...@surfree.com>.
Have you had a chance to look over the excellent documentation located at [http://perl.apache.org/guide/install.html]?
R Joseph Wright wrote:
>
> On Fri, 31 Mar 2000, Doug MacEachern wrote:
>
> > > After having compiled mod_perl and apache together, shouldn't mod_perl be
> > > enabled in httpd.conf? It isn't. Have I done things correctly?
> >
> > no, you need to add the mod_perl configuration to httpd.conf yourself.
>
> Then here is part II of the question:
>
> Where do I tell it to load mod_perl? I know the order in which modules are
> loaded is important.
Re: installing with apache
Posted by R Joseph Wright <rj...@speakeasy.org>.
On Fri, 31 Mar 2000, Doug MacEachern wrote:
> > After having compiled mod_perl and apache together, shouldn't mod_perl be
> > enabled in httpd.conf? It isn't. Have I done things correctly?
>
> no, you need to add the mod_perl configuration to httpd.conf yourself.
Then here is part II of the question:
Where do I tell it to load mod_perl? I know the order in which modules are
loaded is important.
Re: installing with apache
Posted by Doug MacEachern <do...@covalent.net>.
> After having compiled mod_perl and apache together, shouldn't mod_perl be
> enabled in httpd.conf? It isn't. Have I done things correctly?
no, you need to add the mod_perl configuration to httpd.conf yourself.