|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
"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. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|