Re: 2.0.35 binaries for Linux boxes

2002-04-08 Thread Pier Fumagalli

GOMEZ Henri <[EMAIL PROTECTED]> wrote:

>>> I agree that many site put everything under ServerRoot,
>>> but when you specify in config.layout that DocumentRoot
>>> goes under /var/www2/html, you don't want to see the final
>>> httpd.conf under /etc/httpd2/var/www2/html
>> 
>> Yeah... Ok...
>> 
>> That's why I said to use "@exp_dir@" instead of
>> "@@ServerRoot@@[EMAIL PROTECTED]@"... Try replacing those values in your
>> httpd.conf.in, and rerun ./config.status, and tell me if it
>> works (since I
>> was the one who made that part of the change)...
> 
> Arg so it was you ;)

Who do you think causes troubles all the time?

> For now, I 'cowardly' made major replacement in httpd.conf.in via
> sed to be sure my RPM will works on my Redhat 6.2 and 7.2 and will try
> the @exp_...dir@ later, may be tomorrow...
> 
> so should I replace for example ?
> 
> @@ServerRoot@@/@rel_logfiledir@ => @exp_logfiledir@

Yup... You can also check what comes out of your installed config_vars.mk,
to see whether that value is correctly set or not...

Pier




RE: 2.0.35 binaries for Linux boxes

2002-04-08 Thread GOMEZ Henri

When trying to use shmcb I've got :

mod_ssl cannot allocate shared memory error 

It works fine with dbm

Any idea ?

>-Original Message-
>From: GOMEZ Henri 
>Sent: Monday, April 08, 2002 6:08 PM
>To: [EMAIL PROTECTED]
>Subject: RE: 2.0.35 binaries for Linux boxes
>
>
>>> I agree that many site put everything under ServerRoot,
>>> but when you specify in config.layout that DocumentRoot
>>> goes under /var/www2/html, you don't want to see the final
>>> httpd.conf under /etc/httpd2/var/www2/html
>>
>>Yeah... Ok...
>>
>>That's why I said to use "@exp_dir@" instead of
>>"@@ServerRoot@@[EMAIL PROTECTED]@"... Try replacing those values in your
>>httpd.conf.in, and rerun ./config.status, and tell me if it 
>>works (since I
>>was the one who made that part of the change)...
>
>Arg so it was you ;)
>
>For now, I 'cowardly' made major replacement in httpd.conf.in via
>sed to be sure my RPM will works on my Redhat 6.2 and 7.2 and will try
>the @exp_...dir@ later, may be tomorrow...
>
>so should I replace for example ?
>
>@@ServerRoot@@/@rel_logfiledir@ => @exp_logfiledir@ 
>
>



RE: 2.0.35 binaries for Linux boxes

2002-04-08 Thread GOMEZ Henri

>> I agree that many site put everything under ServerRoot,
>> but when you specify in config.layout that DocumentRoot
>> goes under /var/www2/html, you don't want to see the final
>> httpd.conf under /etc/httpd2/var/www2/html
>
>Yeah... Ok...
>
>That's why I said to use "@exp_dir@" instead of
>"@@ServerRoot@@[EMAIL PROTECTED]@"... Try replacing those values in your
>httpd.conf.in, and rerun ./config.status, and tell me if it 
>works (since I
>was the one who made that part of the change)...

Arg so it was you ;)

For now, I 'cowardly' made major replacement in httpd.conf.in via
sed to be sure my RPM will works on my Redhat 6.2 and 7.2 and will try
the @exp_...dir@ later, may be tomorrow...

so should I replace for example ?

@@ServerRoot@@/@rel_logfiledir@ => @exp_logfiledir@ 




Re: 2.0.35 binaries for Linux boxes

2002-04-08 Thread Pier Fumagalli

GOMEZ Henri <[EMAIL PROTECTED]> wrote:

> Hi Pier, 
> 
> I agree that many site put everything under ServerRoot,
> but when you specify in config.layout that DocumentRoot
> goes under /var/www2/html, you don't want to see the final
> httpd.conf under /etc/httpd2/var/www2/html

Yeah... Ok...

That's why I said to use "@exp_dir@" instead of
"@@ServerRoot@@[EMAIL PROTECTED]@"... Try replacing those values in your
httpd.conf.in, and rerun ./config.status, and tell me if it works (since I
was the one who made that part of the change)...

Pier




RE: 2.0.35 binaries for Linux boxes

2002-04-08 Thread GOMEZ Henri

Nota also in the 1.3.24 Makefile.tmpl,
the usefull vars :

conf_user, conf_group, conf_serveradmin, conf_servername

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: GOMEZ Henri 
>Sent: Monday, April 08, 2002 3:23 PM
>To: [EMAIL PROTECTED]
>Subject: RE: 2.0.35 binaries for Linux boxes
>
>
>Hi Pier, 
>
>I agree that many site put everything under ServerRoot,
>but when you specify in config.layout that DocumentRoot
>goes under /var/www2/html, you don't want to see the final
>httpd.conf under /etc/httpd2/var/www2/html
>
>FHS is very clear on where to deploy such datas and split
>configuration, binaries, datas and logs...
>
>That's a real problem today for ALL RPM distributions,
>not only Linux but also the OpenPKG which is solaris/bsd based.
>
>The only solution is to patch httpd-std.conf.in but it's allways
>bad to patch like this, making it a pain at each release.
>
>BTW, in Apache 1.3, Makefile.tmpl there is a second pass at
>install time which replace @@ServerRoot@@
>
>===>
>
> cat $(TOP)/conf/$${conf}-dist ) |\
> sed -e '/# LoadModule/r $(TOP)/$(SRC)/.apaci.install.conf' \
>-e 's;@@ServerRoot@@/htdocs/manual;$(manualdir);' \
>-e 's;@@ServerRoot@@/htdocs;$(htdocsdir);' \
>-e 's;@@ServerRoot@@/icons;$(iconsdir);' \
>-e 's;@@ServerRoot@@/cgi-bin;$(cgidir);' \
>-e 's;@@ServerRoot@@/proxy;$(proxycachedir);' \
>-e 's;@@ServerRoot@@;$(prefix);g' \
>-e 's;httpd\.conf;$(TARGET).conf;' \
>-e 's;logs/accept\.lock;$(runtimedir)/$(TARGET).lock;' \
>-e 
>'s;logs/apache_runtime_status;$(runtimedir)/$(TARGET).scoreboard;' \
>-e 's;logs/httpd\.pid;$(runtimedir)/$(TARGET).pid;' \
>-e 
>"s;logs/access_log;$(logfiledir)/$${target_prefix}access_log;" \
>-e 
>"s;logs/error_log;$(logfiledir)/$${target_prefix}error_log;" \
>-e 
>"s;logs/referer_log;$(logfiledir)/$${target_prefix}referer_log;" \
>-e 
>"s;logs/agent_log;$(logfiledir)/$${target_prefix}agent_log;" \
>-e 's;conf/magic;$(sysconfdir)/magic;' \
>-e 's;conf/mime\.types;$(sysconfdir)/mime.types;' \
>-e 's;User nobody;User $(conf_user);' \
>-e 's;Group #-1;Group $(conf_group);' \
>-e 's;Group "#-1";Group $(conf_group);' \
>-e 's;Port 80;Port $(conf_port);' \
>-e 's;ServerAdmin [EMAIL PROTECTED];ServerAdmin 
>$(conf_serveradmin);' \
>-e 's;ServerName new.host.name;ServerName 
>$(conf_servername);' \
>    > $(TOP)/$(SRC)/.apaci.install.tmp && \
>
>
><===
>
>
>-
>Henri Gomez ___[_]
>EMAIL : [EMAIL PROTECTED](. .) 
>PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
>PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
>
>
>
>>-Original Message-
>>From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, April 08, 2002 2:56 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: 2.0.35 binaries for Linux boxes
>>
>>
>>GOMEZ Henri <[EMAIL PROTECTED]> wrote:
>>
>>> -
>>> +
>>
>>Those will screw up the whole httpd.conf in some cases... You 
>>should really
>>use "@exp_..dir@"...
>>
>>Pier
>>
>>
>



RE: 2.0.35 binaries for Linux boxes

2002-04-08 Thread GOMEZ Henri

Hi Pier, 

I agree that many site put everything under ServerRoot,
but when you specify in config.layout that DocumentRoot
goes under /var/www2/html, you don't want to see the final
httpd.conf under /etc/httpd2/var/www2/html

FHS is very clear on where to deploy such datas and split
configuration, binaries, datas and logs...

That's a real problem today for ALL RPM distributions,
not only Linux but also the OpenPKG which is solaris/bsd based.

The only solution is to patch httpd-std.conf.in but it's allways
bad to patch like this, making it a pain at each release.

BTW, in Apache 1.3, Makefile.tmpl there is a second pass at
install time which replace @@ServerRoot@@

===>

 cat $(TOP)/conf/$${conf}-dist ) |\
 sed -e '/# LoadModule/r $(TOP)/$(SRC)/.apaci.install.conf' \
-e 's;@@ServerRoot@@/htdocs/manual;$(manualdir);' \
-e 's;@@ServerRoot@@/htdocs;$(htdocsdir);' \
-e 's;@@ServerRoot@@/icons;$(iconsdir);' \
-e 's;@@ServerRoot@@/cgi-bin;$(cgidir);' \
-e 's;@@ServerRoot@@/proxy;$(proxycachedir);' \
-e 's;@@ServerRoot@@;$(prefix);g' \
-e 's;httpd\.conf;$(TARGET).conf;' \
-e 's;logs/accept\.lock;$(runtimedir)/$(TARGET).lock;' \
-e 's;logs/apache_runtime_status;$(runtimedir)/$(TARGET).scoreboard;' \
-e 's;logs/httpd\.pid;$(runtimedir)/$(TARGET).pid;' \
-e "s;logs/access_log;$(logfiledir)/$${target_prefix}access_log;" \
-e "s;logs/error_log;$(logfiledir)/$${target_prefix}error_log;" \
-e "s;logs/referer_log;$(logfiledir)/$${target_prefix}referer_log;" \
-e "s;logs/agent_log;$(logfiledir)/$${target_prefix}agent_log;" \
-e 's;conf/magic;$(sysconfdir)/magic;' \
-e 's;conf/mime\.types;$(sysconfdir)/mime.types;' \
-e 's;User nobody;User $(conf_user);' \
-e 's;Group #-1;Group $(conf_group);' \
-e 's;Group "#-1";Group $(conf_group);' \
-e 's;Port 80;Port $(conf_port);' \
-e 's;ServerAdmin [EMAIL PROTECTED];ServerAdmin $(conf_serveradmin);' \
-e 's;ServerName new.host.name;ServerName $(conf_servername);' \
> $(TOP)/$(SRC)/.apaci.install.tmp && \


<===


-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .)     
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
>Sent: Monday, April 08, 2002 2:56 PM
>To: [EMAIL PROTECTED]
>Subject: Re: 2.0.35 binaries for Linux boxes
>
>
>GOMEZ Henri <[EMAIL PROTECTED]> wrote:
>
>> -
>> +
>
>Those will screw up the whole httpd.conf in some cases... You 
>should really
>use "@exp_..dir@"...
>
>Pier
>
>



Re: 2.0.35 binaries for Linux boxes

2002-04-08 Thread Pier Fumagalli

GOMEZ Henri <[EMAIL PROTECTED]> wrote:

> -
> +

Those will screw up the whole httpd.conf in some cases... You should really
use "@exp_..dir@"...

Pier




RE: 2.0.35 binaries for Linux boxes

2002-04-08 Thread GOMEZ Henri

The story continue :

1) Pidfile is located in http.conf into @rel_logfiledir@
   instead of @rel_runtimedir@ (following fhs)

so we got PidFile   /var/log/httpd2/httpd2.pid

instead of PidFile  /var/run/httpd2.pid 
as recommanded by FHS (and used by RH/MDK distros)

2) Redhat Linux (and maybe others), require
   User and Group set (ie)

User apache2
Group apache2

Could we add in configure a --with-user and --with-group
flag to set them ?

In httpd-std.conf.in it could became

User @rel_user@
Group @rel_group@ 

Final point, I've got ServerRoot in /etc/httpd2
and DocumentRoot in /var/www2/html via layout.config

So I finish with DocumentRoot /etc/httpd2/var/www2/html
instead of just DocumentRoot /var/www2/html

Could we avoid having @ServerRoot@ appended to @rel_htdocsdir@ ?
Ditto for error when @rel_errordir@ is created from layout.config
and for @rel_manualdir@

Regards

===>


--- docs/conf/httpd-std.conf.in Thu Apr  4 11:15:43 2002
+++ docs/conf/httpd-std.conf.in.new Mon Apr  8 14:46:02 2002
@@ -78,7 +78,7 @@
 # identification number when it starts.
 #
 
-PidFile @rel_logfiledir@/httpd.pid
+PidFile @rel_runtimedir@/httpd.pid
 
 
 #
@@ -250,8 +250,8 @@
 #  when the value of (unsigned)Group is above 6; 
 #  don't use Group #-1 on these systems!
 #
-User nobody
-Group #-1
+User @rel_user@
+Group @rel_group@
 
 
 
@@ -290,7 +290,7 @@
 # documents. By default, all requests are taken from this directory, but
 # symbolic links and aliases may be used to point to other locations.
 #
-DocumentRoot "@@ServerRoot@@/@rel_htdocsdir@"
+DocumentRoot "@rel_htdocsdir@"
 
 #
 # Each directory to which Apache has access can be configured with respect
@@ -315,7 +315,7 @@
 #
 # This should be changed to whatever you set DocumentRoot to.
 #
-
+
 
 #
 # Possible values for the Options directive are "None", "All",
@@ -513,9 +513,9 @@
 # the manual, even if you choose to move your DocumentRoot.  You may comment
 # this out if you do not care for the documentation.
 #
-Alias /manual "@@ServerRoot@@/@rel_manualdir@"
+Alias /manual "@rel_manualdir@"
 
-
+
 Options Indexes FollowSymLinks MultiViews
 AllowOverride None
 Order allow,deny
@@ -860,9 +860,9 @@
 
 
 
-Alias /error/ "@@ServerRoot@@/@rel_errordir@/"
+Alias /error/ "@rel_errordir@/"
 
-
+
 AllowOverride None
 Options IncludesNoExec
 AddOutputFilter Includes html



2.0.35 binaries for Linux boxes

2002-04-08 Thread GOMEZ Henri

Hi to all,

I've worked on Apache 2.0 rpms for sometimes now,
just take a look here :

http://ftp.falsehope.com/home/gomez/apache2/

BTW, I'm working now on 2.0.35 rpm, which coexist
with standard Apache 1.3 on Redhat 6.x/7.x,
mainly by using /etc/httpd2/conf dir, /var/log/httpd2,
listening on port 8092

Will you be interested in this rpm which will ease
the installation and use for all Redhat users,
(but Suse/Mandrake may use it also).

These distro users prefer the RPM packaging ;)

Regards

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6