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