Hi there,

On Thu, 13 Jul 2000, ROUSSY, ISABELLE wrote:

> I compiled mod_perl using the simple command 
> perl Makefile.PL
> make && make install
> 
> then to add it apache, what is the commanf line because I tried 
> ./configure --prefix=/usr/local/etc/httpd --sysconfdir=/www/conf
> --activate-module=src/modules/perl/libperl.a
> make && make install
> 
> but I still can't see mod_perl.c in httpd -l or mod_perl in my status

I'm not sure you're doing things in the right order (you don't really
need to do ./configure, mod_perl can do that for you) nor whether you
have the directory structures etc. right to begin with.  You want the
Apache and mod_perl source trees in two directories something like so:

/usr/local/src/apache_x.x.xx
/usr/local/src/mod_perl-x.xx

which you can create by doing this:

# cd /usr/local/src
# mv mod_perl-x.xx.tgz .
# mv apache_x.x.xx.tgz .
# tar xzvf mod_perl-x.xx.tgz
# tar xzvf apache_x.x.xx.tgz

You may have to modify this if you don't use e.g. the GNU version of
tar which understands about gzipped files.

Make sure you have removed and stopped any existing Apache binaries
and processes, edit the attached file as necessary (I've put some
modules in just to show you how I usually do it), put the file in
/usr/local/src/mod_perl and issue the commands:

# cd /usr/local/src/apache
# make clean
# cd /usr/local/src/mod_perl
# make clean
# perl Makefile.PL
# make
# make test
# make install

Of course you must change the directories above to suit your setup.
You can also put makepl_args.mod_perl in your home directory and build
Apache somewhere under your home directory tree, but you should put a
dot at the beginning of the filename (.makepl_args.mod_perl) if you do.

Let me know how you get on?  It's all in Stas Bekman's Guide:

http://perl.apache.org/guide

73,
Ged.

USE_APACI=1
APACHE_PREFIX=/usr/local
APACHE_SRC=../apache_1.3.12/src
DO_HTTPD=1
EVERYTHING=1
ALL_HOOKS=1
PERL_SSI=1
PERL_SECTIONS=1
APACI_ARGS=--sbindir=/usr/local/sbin/httpd_perl
APACI_ARGS=--sysconfdir=/usr/local/apache/httpd_perl/conf
APACI_ARGS=--runtimedir=/usr/local/apache/httpd_perl/run
APACI_ARGS=--logfiledir=/usr/local/apache/httpd_perl/logs
APACI_ARGS=--localstatedir=/usr/local/apache/httpd_perl/stat
APACI_ARGS=--proxycachedir=/usr/local/apache/httpd_perl/proxy
APACI_ARGS=--enable-module=rewrite
APACI_ARGS=--enable-module=include
APACI_ARGS=--enable-module=info

Reply via email to