DeveloperSide.NET Forums

DeveloperSide.NET => Building a Web Server, for Linux => Topic started by: Jarmak on September 11, 2003, 10:30:44 PM



Title: Problems with starting Apache2 + SSL on Linux
Post by: Jarmak on September 11, 2003, 10:30:44 PM
Hello,

I have a problems with starting Apache2 + SSL on my Linux server (RH9).

I installed and configured openssl and apache2 as is described on www.devside.net

When I tried to start my server with SSL I got an error:


Syntax error on line 245 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_ssl.so into server: /usr/local/apache2/modules/mod_ssl.so: undefined symbol: X509_free

but



start O.K.

What can be a reason of that error?

Best regards,

Jarek


Title: Problems with starting Apache2 + SSL on Linux
Post by: Anonymous on September 12, 2003, 12:23:12 AM
That happens when you build OpenSSL as a static lib, and have apache load is as a dynamic module.

When you built openssl, did you do this:

.../openssl-0.9.7b]# ./config shared ...

Did you put in the "shared", as the instructions say?

If you did, than you most likely have an older OpenSSL that came with your distro, and you did not "Update the Run-time Linker".


Title: Problems with starting Apache2 + SSL on Linux
Post by: Anonymous on June 22, 2004, 12:05:33 AM
i did

that didnt help..

d# ls -la  /usr/local/ssl/lib/
total 3478
drwxr-xr-x  3 root  wheel      512 Jun 21 19:49 .
drwxr-xr-x  9 root  wheel      512 Jun 21 19:49 ..
-rw-r--r--  1 root  wheel  1793528 Jun 21 19:49 libcrypto.a
lrwxr-xr-x  1 root  wheel       14 Jun 21 19:49 libcrypto.so -> libcrypto.so.0
lrwxr-xr-x  1 root  wheel       18 Jun 21 19:49 libcrypto.so.0 -> libcrypto.so.0.9.7
-r-xr-xr-x  1 root  wheel  1153876 Jun 21 19:49 libcrypto.so.0.9.7
-rw-r--r--  1 root  wheel   283128 Jun 21 19:49 libssl.a
lrwxr-xr-x  1 root  wheel       11 Jun 21 19:49 libssl.so -> libssl.so.0
lrwxr-xr-x  1 root  wheel       15 Jun 21 19:49 libssl.so.0 -> libssl.so.0.9.7
-r-xr-xr-x  1 root  wheel   216234 Jun 21 19:49 libssl.so.0.9.7
drw-r--r--  2 root  wheel      512 Sep 16  2003 pkgconfig
d#