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