You are viewing a plain text version of this content. The canonical link for it is here.
Posted to packagers@httpd.apache.org by Mark Constable <ma...@renta.net> on 2007/06/11 13:54:14 UTC

Changing SERVER_CONFIG_FILE

I'm trying to emulate a Debian installation without using
debian/rules and want to change this from...

 -D SERVER_CONFIG_FILE="/etc/httpd/conf/httpd.conf"
to
 -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"

I've tried env vars in front of configure and a hardwired
sed rewrite of include/httpd.conf as well as setting...

 --datadir=/etc/apache2 --with-program-name=apache2 ?

but nothing seems to work. Would anyone have a suggestion
how to change the internal SERVER_CONFIG_FILE for v2.2.4 ?

--markc

[users@httpd] Re: Changing SERVER_CONFIG_FILE (solved)

Posted by Mark Constable <ma...@renta.net>.
> On Tuesday 12 June 2007 16:37:49 Dr. Peter Poeml wrote:
> > ./configure --with-program-name=apache2 --enable-layout=Debian
> > yields a binary with SERVER_CONFIG_FILE="/etc/apache2/apache2.conf" for
> > me. Seems I can't reproduce what you are seeing.

> I guess the difference is perhaps something to do with
> the local Debian apr and/or apr-util installation.

Indeed it was simply a matter of compiling apr-util with
--enable-layout=Debian first and then proceeding with the
apache build using --with-program-name=apache2 and
--enable-layout=Debian.

FWIW

--markc

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Changing SERVER_CONFIG_FILE (solved)

Posted by Mark Constable <ma...@renta.net>.
> On Tuesday 12 June 2007 16:37:49 Dr. Peter Poeml wrote:
> > ./configure --with-program-name=apache2 --enable-layout=Debian
> > yields a binary with SERVER_CONFIG_FILE="/etc/apache2/apache2.conf" for
> > me. Seems I can't reproduce what you are seeing.

> I guess the difference is perhaps something to do with
> the local Debian apr and/or apr-util installation.

Indeed it was simply a matter of compiling apr-util with
--enable-layout=Debian first and then proceeding with the
apache build using --with-program-name=apache2 and
--enable-layout=Debian.

FWIW

--markc

Re: Changing SERVER_CONFIG_FILE

Posted by Mark Constable <ma...@renta.net>.
On Tuesday 12 June 2007 16:37:49 Dr. Peter Poeml wrote:
> ./configure --with-program-name=apache2 --enable-layout=Debian
> yields a binary with SERVER_CONFIG_FILE="/etc/apache2/apache2.conf" for
> me. Seems I can't reproduce what you are seeing.

Thanks for the confirmation that it "just works" for you
so it's something deeper in the system that I have yet
to figure out.

I just copied my ArchLinux abs system across to a Debian
server (with only the pacman package installed) and lo n
behold I get the right Debianized settings even though I
am not using the debian build system or have anything to
do with it other than building an ArchLinux package on a
Debian4 system.

I guess the difference is perhaps something to do with
the local Debian apr and/or apr-util installation.

--markc

Re: Changing SERVER_CONFIG_FILE

Posted by "Dr. Peter Poeml" <po...@suse.de>.
Hi,

On Tue, Jun 12, 2007 at 04:13:58PM +1000, Mark Constable wrote:
> On Monday 11 June 2007 22:08:52 Dr. Peter Poeml wrote:
> > For me, --with-program-name=... combined with "sysconfdir: /etc/apache2"
> > in the chosen layout (as in config.layout) seems to work.
> 
> My config.layout shows...
> 
> <Layout Debian>
>     prefix:
>     ...
>     sysconfdir:    ${prefix}/etc/apache2
>     ...
> 
> > I use it together with --enable-layout, maybe that makes a difference.
> 
> Here are all my configure args...
> 
>   ./configure --with-program-name=apache2 --enable-layout=Debian \
>     --enable-modules=all --enable-mods-shared=all --enable-ssl --enable-so \
>     --enable-proxy --enable-proxy-connect --enable-proxy-ftp \
>     --enable-proxy-http --disable-suexec --enable-dbd \
>     --enable-cache --enable-disk-cache --enable-mem-cache \
>     --with-apr=/usr --with-apr-util=/usr --with-mpm=prefork \
>     --with-pcre=yes --disable-ldap
> 
> But I still end up with the below. Appreciate any comments.

./configure --with-program-name=apache2 --enable-layout=Debian
yields a binary with SERVER_CONFIG_FILE="/etc/apache2/apache2.conf" for
me. Seems I can't reproduce what you are seeing.

Peter
-- 
Allen Gewalten zum Trutz sich erhalten.
 
SUSE LINUX Products GmbH
Research & Development

Re: Changing SERVER_CONFIG_FILE

Posted by Mark Constable <ma...@renta.net>.
On Monday 11 June 2007 22:08:52 Dr. Peter Poeml wrote:
> > I'm trying to emulate a Debian installation without using
> > debian/rules and want to change this from...
> > 
> >  -D SERVER_CONFIG_FILE="/etc/httpd/conf/httpd.conf"
> > to
> >  -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"

Thanks for the reply Peter. Still no luck for me.

> For me, --with-program-name=... combined with "sysconfdir: /etc/apache2"
> in the chosen layout (as in config.layout) seems to work.

My config.layout shows...

<Layout Debian>
    prefix:
    ...
    sysconfdir:    ${prefix}/etc/apache2
    ...

> I use it together with --enable-layout, maybe that makes a difference.

Here are all my configure args...

  ./configure --with-program-name=apache2 --enable-layout=Debian \
    --enable-modules=all --enable-mods-shared=all --enable-ssl --enable-so \
    --enable-proxy --enable-proxy-connect --enable-proxy-ftp \
    --enable-proxy-http --disable-suexec --enable-dbd \
    --enable-cache --enable-disk-cache --enable-mem-cache \
    --with-apr=/usr --with-apr-util=/usr --with-mpm=prefork \
    --with-pcre=yes --disable-ldap

But I still end up with the below. Appreciate any comments.

 -D SUEXEC_BIN="/usr/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/httpd/conf/mime.types"
 -D SERVER_CONFIG_FILE="/etc/httpd/conf/httpd.conf"
 -D DYNAMIC_MODULE_LIMIT=%ld
 -D HTTPD_ROOT="/usr"

Whereas it should end up more like (or I'd like it to)...

 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
 -D DEFAULT_ERRORLOG="/var/logs/apache2/error.log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
 -D HTTPD_ROOT=""

I'm even hardwiring this into include/httpd.conf but
SERVER_CONFIG_FILE still won't budge...

sed -i 's|^#define SERVER_CONFIG_FILE ".*$|#define SERVER_CONFIG_FILE "apache2.conf"|' \
   include/httpd.h

Aside from the normal customized configure args, this
is a stock standard httpd-2.2.4.tar.gz tarball so I'm
starting to think there may be a bug in the build.

Would anyone think this may be possible ?

--markc

Re: Changing SERVER_CONFIG_FILE

Posted by "Dr. Peter Poeml" <po...@suse.de>.
Hi,

On Mon, Jun 11, 2007 at 09:54:14PM +1000, Mark Constable wrote:
> I'm trying to emulate a Debian installation without using
> debian/rules and want to change this from...
> 
>  -D SERVER_CONFIG_FILE="/etc/httpd/conf/httpd.conf"
> to
>  -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
> 
> I've tried env vars in front of configure and a hardwired
> sed rewrite of include/httpd.conf as well as setting...
> 
>  --datadir=/etc/apache2 --with-program-name=apache2 ?

For me, --with-program-name=... combined with "sysconfdir: /etc/apache2"
in the chosen layout (as in config.layout) seems to work.

I use it together with --enable-layout, maybe that makes a difference.

> but nothing seems to work. Would anyone have a suggestion
> how to change the internal SERVER_CONFIG_FILE for v2.2.4 ?
> 
> --markc

Peter
-- 
Allen Gewalten zum Trutz sich erhalten.
 
SUSE LINUX Products GmbH
Research & Development