logo       

RE: Need help installing mod_perl: msg#00635

Subject: RE: Need help installing mod_perl
On Tue, 2003-04-29 at 06:21, Tom Gazzini wrote:

> Anyway, for sanity's sake (or what's left of it) I tried once again to
> type in the Makefile.PL args by hand exactly by the book (the Cookbook
> to be exact). So I typed the following:
> 
> perl Makefile.PL \
> APACHE_SRC=../apache_1.3.27/src \
> APACHE_PREFIX=/usr/local/apache \
> EVERYTHING=1 \
> DO_HTTPD=1 \
> PORT=80 \
> USE_APACI=1 \
> APACI_ARGS='--enable-module=rewrite, \
>             --enable-module=info, \
>             --enable-module=expires, \
>             --disable-module=userdir'

Do you really require all of that extra configuration?  Are you planning
to use mod_rewrite and mod_expires?

I typically use this one-liner:
perl Makefile.PL DO_HTTPD=1 USE_APACI=1 APACHE_PREFIX=/usr/local/apache

> "make && make test && make install" proceed without any problems.
> However, this doesn't use the file layout that I need (I'm using RH
> 7.2).

Is there any special reason you want to do it Red Hat's way?  It's not
necessary, and their location is non-standard.  Putting it in the
default /usr/local/apache/ is more typical and I've always run it that
way on Red Hat.

>  Also, I have to use PORT=80 because otherwise make test terminates
> with a "Cannot bind to port 8529, port already in use" error.

Sounds like you could just use any other port that is unused, like 8530,
8531, etc.

> So I add '--with-layout=RedHat' to the APACI_ARGS above (and without
> changing anything else) and try again. This time "make && make test &&
> make install"  work fine again. However, when I try and run httpd, I get
> the following error:
> 
> Syntax error on line 206 of /etc/httpd/conf/httpd.conf
> Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
> not included in the server configuration.

That's because you are running it with the httpd.conf file that Red Hat
made, even though you are now running a completely different server. 
Theirs was compiled as a DSO, so it needed those directives.  Your is
compiled statically, so it doesn't.  You would be better off scrapping
their conf file and making your own, starting with the template that
comes with apache.

- Perrin




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe