PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Apache Compilation Flags
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Apache Compilation Flags

Réponse
 
LinkBack Outils de la discussion
Vieux 05/10/2006, 12h16   #1
Bob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache Compilation Flags

Hi,

I'm upgrading openssl on a number of servers and obviously this
involves re-compiling Apache. I am recompiling Apache using this line:

SSL_BASE=/workbench/openssl ./configure --prefix=/workbench/apache
--enable-module=ssl --enable-shared=ssl --enable-rule=SHARED_CORE
--enable-module=so

My question is how can you determine what compilation flags were used
when Apache was originally compiled?

Any is much appreciated,

Thanks,

Bob

  Réponse avec citation
Vieux 05/10/2006, 12h42   #2
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache Compilation Flags

On 2006-10-05, Bob <bobsaila@hotmail.co.uk> wrote:
> I'm upgrading openssl on a number of servers and obviously this
> involves re-compiling Apache.


Well... if your mod_ssl is using dynamic linking, it shouldn't be
necessary to recompile it, just upgrade the libraries.

> My question is how can you determine what compilation flags were used
> when Apache was originally compiled?


The only way is to check the configure log file, httpd -V will tell you
something, but not the whole list.

Davide

--
!07/11 PDP a ni deppart m'I !pleH
  Réponse avec citation
Vieux 05/10/2006, 14h48   #3
Bob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache Compilation Flags

Hi,

Thanks for the quick reply.

How can I tell if mod_ssl is using dynamic linking?

Thanks again,

Bob

Davide Bianchi wrote:

> On 2006-10-05, Bob <bobsaila@hotmail.co.uk> wrote:
> > I'm upgrading openssl on a number of servers and obviously this
> > involves re-compiling Apache.

>
> Well... if your mod_ssl is using dynamic linking, it shouldn't be
> necessary to recompile it, just upgrade the libraries.
>
> > My question is how can you determine what compilation flags were used
> > when Apache was originally compiled?

>
> The only way is to check the configure log file, httpd -V will tell you
> something, but not the whole list.
>
> Davide
>
> --
> !07/11 PDP a ni deppart m'I !pleH


  Réponse avec citation
Vieux 05/10/2006, 14h54   #4
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache Compilation Flags

On 2006-10-05, Bob <bobsaila@hotmail.co.uk> wrote:
> How can I tell if mod_ssl is using dynamic linking?


ldd /where/is/mod_ssl.so

will show '/lib/ld-linux.so' if it's compiled with dynamic linking.

Davide

--
HAL 9000: Dave. Put down those Windows disks, Dave. DAVE!
  Réponse avec citation
Vieux 05/10/2006, 17h07   #5
Bob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache Compilation Flags

Hi,

Thanks for the reply again.

I ran locate to try and find mod_ssl.so but it returned nothing. The
closest I have is libssl.so, and when I run ldd on it, it returns the
following:

libc.so.6 => /lib/libc.so.6 (0x400f8000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Is that the correct file to be looking at? If so, it would seem that
dynamic linking has been used.

If that is the case, when you say there is no need to recompile it
(Apache?), just the libraries, do you mean just openssl?

Also, where can I find the configure log file that you originally
mentioned?

Thanks again,

Bob

Davide Bianchi wrote:

> On 2006-10-05, Bob <bobsaila@hotmail.co.uk> wrote:
> > How can I tell if mod_ssl is using dynamic linking?

>
> ldd /where/is/mod_ssl.so
>
> will show '/lib/ld-linux.so' if it's compiled with dynamic linking.
>
> Davide
>
> --
> HAL 9000: Dave. Put down those Windows disks, Dave. DAVE!


  Réponse avec citation
Vieux 06/10/2006, 07h45   #6
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache Compilation Flags

On 2006-10-05, Bob <bobsaila@hotmail.co.uk> wrote:
> I ran locate to try and find mod_ssl.so but it returned nothing.


Look in your httpd.conf (or wathever your configuration file is),
if there is a LoadModule then you know a) that the module is loaded
at runtime and b) where it is, if there isn't such line then the
module is probably compiled built-in, then you have to recompile it.

Davide

> Also, where can I find the configure log file that you originally
> mentioned?


If you still have it, is in the directory with the sources.
Davide

--
If at first you don't succeed, get a job with Microsoft.
-- Gareth Barnard
  Réponse avec citation
Vieux 06/10/2006, 09h04   #7
Kenneth Svee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache Compilation Flags

[ Davide Bianchi ]

> On 2006-10-05, Bob <bobsaila@hotmail.co.uk> wrote:
>> I'm upgrading openssl on a number of servers and obviously this
>> involves re-compiling Apache.

>
> Well... if your mod_ssl is using dynamic linking, it shouldn't be
> necessary to recompile it, just upgrade the libraries.


A caveat to this should be "if the two versions are binary
compatible", and OpenSSL versions frequently aren't. My advice is also
to try upgrading before recompiling Apache, but be prepared to have to
recompile even though it might be a minor upgrade (say, from 0.9.7k to
0.9.7l).


Rgds,
Kenneth Svee
  Réponse avec citation
Vieux 06/10/2006, 10h38   #8
Bob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache Compilation Flags

Hi Kenneth, Davide,

Many thanks for you replies.

Davide, is the configure log file called configure.status?

Kenneth, as far as I can tell, mod_ssl is using dynamic linking but is
there a way to tell if there are binary compatibility issues?

Finally, can I just confirm that we are talking about leaving Apache
and ModSSL alone and only changing OpenSSL?

Thanks to you both,

Bob

Kenneth Svee wrote:

> [ Davide Bianchi ]
>
> > On 2006-10-05, Bob <bobsaila@hotmail.co.uk> wrote:
> >> I'm upgrading openssl on a number of servers and obviously this
> >> involves re-compiling Apache.

> >
> > Well... if your mod_ssl is using dynamic linking, it shouldn't be
> > necessary to recompile it, just upgrade the libraries.

>
> A caveat to this should be "if the two versions are binary
> compatible", and OpenSSL versions frequently aren't. My advice is also
> to try upgrading before recompiling Apache, but be prepared to have to
> recompile even though it might be a minor upgrade (say, from 0.9.7k to
> 0.9.7l).
>
>
> Rgds,
> Kenneth Svee


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h10.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14949 seconds with 16 queries