httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Voellinger, Sandy" <>
Subject RE: [users@httpd] compiling a portable Apache build for Linux
Date Tue, 04 May 2010 14:55:34 GMT
Yes, in fact this is what I'm doing as a work around, but because of the deployment tools and
level of automation we're trying to put in place I need to figure out how to compile apache
to simply look relative to the binary's location for its configuration files.

Thanks -

From: Jorge Schrauwen []
Sent: Tuesday, May 04, 2010 5:01 AM
Subject: Re: [users@httpd] compiling a portable Apache build for Linux

Have you trying writing a small wrapper scrip that passes the conf directory using the -d

Kind regards


On Mon, May 3, 2010 at 8:21 PM, Voellinger, Sandy <<>>
Good Afternoon -

Apache Version:  httpd-2.2.15
Linux Version:  Red Hat Enterprise Linux Server release 5.4 (Tikanga) / 2.6.18-164.el5xen

I'm attempting to compile a version of apache_2 httpd binary that is agnostic of the directory
it's run from and will look for its configuration files local to the binary's run location.
(Example:  ./httpd will look for httpd.conf local to my run location reguardless of prefix).

At compile time, I'm required to provide a --prefix= directory or configure will assume that
I want it installed by default in /usr/local/apache.  I've tried to compile using --prefix=./
but this fails with " configure: error: expected an absolute directory name for --prefix:

I know I can create an alternative directory structure and use the -d and -f flags with ./httpd
to identify alternate prefix directory and httpd.conf locations at runtime but I want to avoid
having to pass these variables.

Any thoughts or help would be greatly appreciated.


Sandy D. Voellinger
Neustar, Inc. / Applications Support and Systems Administration, Operations & Engineering,
46000 Center Oak Plaza Sterling, VA 20166
Office: +1.571.434.3412  Mobile: +1.703.568.3450  Fax: +1.571.434.XXXX /<>

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:<>
  "   from the digest:<>
For additional commands, e-mail:<>

View raw message