PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > how to enable MOD_SSL to running Apache
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

how to enable MOD_SSL to running Apache

Réponse
 
LinkBack Outils de la discussion
Vieux 16/05/2005, 21h53   #1
HARI OM
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut how to enable MOD_SSL to running Apache

SUBJECT: How to enable MOD_SSL to running Apache

I am using Apache 2.0.47 on my SuSE Linux 8.1

My Apache has been working great since 2 months. I would now like to
use SSL Certificates for accessing my web application (port 443).

I have installed and configured OPENSSL (/usr/local/openssl).
My APACHE Aource Directory is /downloads/apache2047src and
my Apache installation is under /usr/local/apache2047

How can I ENABLE MOD_SSL with an existing APACHE? It seems we can use
APXS to enable.
I have installed my APACHE as a DSO and when I do "httpd -l" it does
show mod_so

I tried following but get bunch of errors...
----------------------------------------------------------------------
#pwd
/downloads/apache2047src/modules/ssl
# /usr/local/apache2047/bin/apxs -c mod_ssl.c

/usr/local/apache2047/build/libtool --silent --mode=compile
/usr/bin/gcc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2047/include
-I/usr/local/apache2047/include -I/usr/local/apache2047/include -c
-o mod_ssl.lo mod_ssl.c && touch mod_ssl.slo
In file included from mod_ssl.c:60:
mod_ssl.h:125:17: ssl.h: No such file or directory
mod_ssl.h:127:18: x509.h: No such file or directory
mod_ssl.h:128:17: pem.h: No such file or directory
mod_ssl.h:129:20: crypto.h: No such file or directory
mod_ssl.h:130:17: evp.h: No such file or directory
mod_ssl.h:131:18: rand.h: No such file or directory
In file included from mod_ssl.h:143,
from mod_ssl.c:60:
ssl_toolkit_compat.h:230:2: #error "Unrecognized SSL Toolkit!"
In file included from mod_ssl.h:145,
from mod_ssl.c:60:
ssl_util_ssl.h:91: parse error before '*' token
ssl_util_ssl.h:92: parse error before '*' token
ssl_util_ssl.h:93: parse error before '*' token
ssl_util_ssl.h:93: parse error before "X509"
ssl_util_ssl.h:93: warning: data definition has no type or storage
class
ssl_util_ssl.h:94: parse error before '*' token
ssl_util_ssl.h:94: parse error before "EVP_PKEY"
ssl_util_ssl.h:94: warning: data definition has no type or storage
class
ssl_util_ssl.h:95: parse error before '*' token
ssl_util_ssl.h:96: parse error before '*' token
ssl_util_ssl.h:96: warning: data definition has no type or storage
class
ssl_util_ssl.h:97: parse error before '*' token
ssl_util_ssl.h:98: parse error before "SSL"
ssl_util_ssl.h:99: parse error before '*' token
ssl_util_ssl.h:100: parse error before '*' token
ssl_util_ssl.h:101: parse error before "X509"
ssl_util_ssl.h:102: parse error before "STACK_OF"
ssl_util_ssl.h:103: parse error before "STACK_OF"
ssl_util_ssl.h:104: parse error before '*' token
ssl_util_ssl.h:108: parse error before '*' token
ssl_util_ssl.h:110: parse error before '*' token
ssl_util_ssl.h:111: warning: data definition has no type or storage
class
In file included from mod_ssl.c:60:
mod_ssl.h:415: parse error before "SSL"
mod_ssl.h:415: warning: no semicolon at end of struct or union
mod_ssl.h:417: parse error before '*' token
mod_ssl.h:417: warning: data definition has no type or storage class
mod_ssl.h:425: parse error before '}' token
mod_ssl.h:425: warning: data definition has no type or storage class
mod_ssl.h:463: parse error before "X509"
mod_ssl.h:463: warning: no semicolon at end of struct or union
mod_ssl.h:464: warning: data definition has no type or storage class
mod_ssl.h:465: parse error before '}' token
mod_ssl.h:465: warning: data definition has no type or storage class
mod_ssl.h:471: parse error before "STACK_OF"
mod_ssl.h:471: warning: no semicolon at end of struct or union
mod_ssl.h:472: warning: data definition has no type or storage class
mod_ssl.h:491: parse error before "SSL_CTX"
mod_ssl.h:491: warning: no semicolon at end of struct or union
mod_ssl.h:494: warning: data definition has no type or storage class
mod_ssl.h:495: parse error before '*' token
mod_ssl.h:495: warning: data definition has no type or storage class
mod_ssl.h:508: parse error before '*' token
mod_ssl.h:508: warning: data definition has no type or storage class
mod_ssl.h:511: parse error before '}' token
mod_ssl.h:511: warning: data definition has no type or storage class
mod_ssl.h:520: parse error before "modssl_ctx_t"
mod_ssl.h:520: warning: no semicolon at end of struct or union
mod_ssl.h:521: warning: data definition has no type or storage class
mod_ssl.h:522: parse error before '}' token
mod_ssl.h:600: parse error before '*' token
mod_ssl.h:600: warning: data definition has no type or storage class
mod_ssl.h:613: parse error before '*' token
mod_ssl.h:613: parse error before '*' token
mod_ssl.h:613: warning: data definition has no type or storage class
mod_ssl.h:614: parse error before '*' token
mod_ssl.h:614: parse error before '*' token
mod_ssl.h:614: warning: data definition has no type or storage class
mod_ssl.h:615: parse error before "X509_STORE_CTX"
mod_ssl.h:616: parse error before "X509_STORE_CTX"
mod_ssl.h:617: parse error before '*' token
mod_ssl.h:618: parse error before '*' token
mod_ssl.h:619: parse error before '*' token
mod_ssl.h:619: parse error before '*' token
mod_ssl.h:619: warning: data definition has no type or storage class
mod_ssl.h:620: parse error before '*' token
mod_ssl.h:621: parse error before "int"
mod_ssl.h:629: parse error before "SSL_SESSION"
mod_ssl.h:630: parse error before '*' token
mod_ssl.h:630: warning: data definition has no type or storage class
mod_ssl.h:637: parse error before "SSL_SESSION"
mod_ssl.h:638: parse error before '*' token
mod_ssl.h:638: warning: data definition has no type or storage class
mod_ssl.h:645: parse error before "SSL_SESSION"
mod_ssl.h:646: parse error before '*' token
mod_ssl.h:646: warning: data definition has no type or storage class
mod_ssl.h:653: parse error before "SSL_SESSION"
mod_ssl.h:654: parse error before '*' token
mod_ssl.h:654: warning: data definition has no type or storage class
mod_ssl.h:663: parse error before '*' token
mod_ssl.h:663: warning: data definition has no type or storage class
mod_ssl.h:664: parse error before '*' token
mod_ssl.h:664: warning: data definition has no type or storage class
mod_ssl.h:710: parse error before "SSL"
mod_ssl.h:712: parse error before '*' token
mod_ssl.h:728: parse error before '*' token
mod_ssl.c:251: parse error before '*' token
mod_ssl.c: In function `ssl_init_connection_ctx':
mod_ssl.c:253: `sslconn' undeclared (first use in this function)
mod_ssl.c:253: (Each undeclared identifier is reported only once
mod_ssl.c:253: for each function it appears in.)
mod_ssl.c:253: parse error before ')' token
mod_ssl.c: In function `ssl_proxy_enable':
mod_ssl.c:270: `sslconn' undeclared (first use in this function)
mod_ssl.c:272: dereferencing pointer to incomplete type
mod_ssl.c:275: dereferencing pointer to incomplete type
mod_ssl.c: In function `ssl_engine_disable':
mod_ssl.c:290: `sslconn' undeclared (first use in this function)
mod_ssl.c:292: dereferencing pointer to incomplete type
mod_ssl.c: In function `ssl_hook_pre_connection':
mod_ssl.c:306: `SSL' undeclared (first use in this function)
mod_ssl.c:306: `ssl' undeclared (first use in this function)
mod_ssl.c:307: `sslconn' undeclared (first use in this function)
mod_ssl.c:307: parse error before ')' token
mod_ssl.c:309: `mctx' undeclared (first use in this function)
mod_ssl.c:314: dereferencing pointer to incomplete type
mod_ssl.c:338: dereferencing pointer to incomplete type
mod_ssl.c:346: dereferencing pointer to incomplete type
mod_ssl.c:346: dereferencing pointer to incomplete type
mod_ssl.c:364: dereferencing pointer to incomplete type
mod_ssl.c:365: dereferencing pointer to incomplete type
mod_ssl.c:390: `X509_V_OK' undeclared (first use in this function)
mod_ssl.c: In function `ssl_hook_http_method':
mod_ssl.c:401: dereferencing pointer to incomplete type
mod_ssl.c: In function `ssl_hook_default_port':
mod_ssl.c:412: dereferencing pointer to incomplete type
apxs:Error: Command failed with rc=65536

  Réponse avec citation
Vieux 17/05/2005, 01h36   #2
Eric Schwartz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to enable MOD_SSL to running Apache

"HARI OM" <hari_om@hotmail.com> writes:
> How can I ENABLE MOD_SSL with an existing APACHE? It seems we can use
> APXS to enable.
> I have installed my APACHE as a DSO and when I do "httpd -l" it does
> show mod_so
>
> I tried following but get bunch of errors...
> ----------------------------------------------------------------------
> #pwd
> /downloads/apache2047src/modules/ssl
> # /usr/local/apache2047/bin/apxs -c mod_ssl.c
>
> /usr/local/apache2047/build/libtool --silent --mode=compile
> /usr/bin/gcc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2
> -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
> -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2047/include
> -I/usr/local/apache2047/include -I/usr/local/apache2047/include -c
> -o mod_ssl.lo mod_ssl.c && touch mod_ssl.slo
> In file included from mod_ssl.c:60:
> mod_ssl.h:125:17: ssl.h: No such file or directory
> mod_ssl.h:127:18: x509.h: No such file or directory
> mod_ssl.h:128:17: pem.h: No such file or directory
> mod_ssl.h:129:20: crypto.h: No such file or directory
> mod_ssl.h:130:17: evp.h: No such file or directory
> mod_ssl.h:131:18: rand.h: No such file or directory


These files are most likely your problem. You don't have the
prerequisites for compiling mod_ssl. If you read the documentation,
you will see that you have to install openssl and its headers to
compile mod_ssl. On most distributions, this would be satisfied by
installing openssl and openssl-dev (or -devel), but SuSE 8.1 is quite
old at this point, and you may have to compile those for yourself, I
don't know.

All the other errors are most likely caused by these missing header
files.

-=Eric
--
Come to think of it, there are already a million monkeys on a million
typewriters, and Usenet is NOTHING like Shakespeare.
-- Blair Houghton.
  Réponse avec citation
Vieux 17/05/2005, 02h43   #3
Alexander Dalloz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to enable MOD_SSL to running Apache

On Mon, 16 May 2005 13:53:02 -0700 HARI OM wrote:

> SUBJECT: How to enable MOD_SSL to running Apache
>
> I am using Apache 2.0.47 on my SuSE Linux 8.1


EOL reached. You better upgrade as running vulnerable services isn't
advised.

> My Apache has been working great since 2 months. I would now like to use
> SSL Certificates for accessing my web application (port 443).


rpm -Uvh /path/to/mod_ssl.rpm

as SuSE ships mod_ssl with it's distribution.

Alexander


--
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.14_FC2smp
Serendipity 03:41:01 up 3 days, 3:13, load average: 0.32, 0.15, 0.11

  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 21h24.


Édité par : vBulletin® version 3.7.3
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 ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13391 seconds with 11 queries