Thanks for the tips.
I found another way to correct the problem. If I create a "makepl_args.mod_perl" file in my mod_perl-1.26 directory with APACHE_PREFIX defined as "/home/apache/", the build runs normally and I am able to start the server with just "/home/apache/bin/apachectl start".
The use of "makepl_args.mod_perl" files is described in the INSTALL file of the mod_perl source tarball.
I'm going to keep looking at this though...I don't understand why it didn't accept APACHE_PREFIX from the command line.
Tim
-----Original Message-----
From: Luciano Miguel Ferreira Rocha [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 08, 2001 1:28 PM
To: Henigan, Timothy
Cc: [EMAIL PROTECTED]
Subject: Re: httpd looking for httpd.conf in wrong path
I don't know why the APACHE_PREFIX isn't being honored for the configuration
files (it's been a long time since I last compiled mod_perl). But
you can resolve the problem by creating a symbolic link of /usr/local/apache
to /home/apache or by specifying the root directory with -d /home/apache or
-f /home/apache/conf/httpd-conf.
Also, make sure you defined DO_HTTPD=1 (and USE_APACI=1) and make install
only in the mod_perl directory.
hugs
Luciano Rocha
On Mon, Oct 08, 2001 at 12:41:33PM -0400, Henigan, Timothy wrote:
> I'm attempting to build/install Apache and mod_perl from source (running as
> root).
>
> I can build Apache stand-alone with no trouble using the following commands:
> - cd /my/src/dir/apache_1.3.20
> - ./configure --prefix=/home/apache
> - make && make test && make install
>
> With the above config, I can start httpd and view pages normally.
>
> The trouble begins when I try to compile Apache with mod_perl. I try the
> following commands:
> - cd ../mod_perl-1.26
> - perl Makefile.PL APACHE_PREFIX=/home/apache/
> - make && make test && make install
> - cd ../apache_1.3.20
> - make install
>
> The build completes successfully (I know this becuase there are no error
> messages, the tests complete successfully, and the timestamps on the
> executable file in the /home/apache/bin directory have changed). When "make
> install" finishes, it tells me to try starting apache with
> /home/apache/bin/apachectl start. However, when I try it I get the
> following message:
> "fopen: No such file or directory"
> "httpd: could not open document config file
> /usr/local/apache/conf/httpd.conf"
> "/home/apache/bin/apachectl start: httpd could not be started"
>
> Any ideas why httpd is looking for httpd.conf in /usr/local/apache/conf when
> I specifically built it using APACHE_PREFIX=/home/apache/? I didn't see any
> similar problems while looking through the mail archives on Geocrawler. Any
> assistance would be appreciated.
>
> == Version info =====================
> OS: Linux 2.2.14, Intel
> Perl: v5.005_03 built for i386-linux
> mod_perl: v1.26
> Apache: v1.3.20
> =================================
>
> Thanks,
> Tim
>
>
--
Luciano Rocha, [EMAIL PROTECTED]
The trouble with computers is that they do what you tell them, not what
you want.
-- D. Cohen