Article 4S9HQ Cannot load /usr/lib/apache2/modules/mod_ssl.so into server: libssl.so.1.0.0: cannot open shared object file: No such file or directory

Cannot load /usr/lib/apache2/modules/mod_ssl.so into server: libssl.so.1.0.0: cannot open shared object file: No such file or directory

by
RayinTampa
from LinuxQuestions.org on (#4S9HQ)
OK, so I've googled and tried everything for the past 5 hours.

I'm on an old system and I can't change it. Ubuntu 8.04, with Apache 2.8, Ruby 1.8.7, Rails 2.3.10 and Passenger 2.2.15. I need TLS 1.2 so I decide to upgrade Apache and openssl.

I compiled the lastest Openssl 1.0.2t, everything fine.

I compiled Apache 2.2.34, pointing it to the openssl version. Once again, fine.

I checked the mode_ssl.so

ldd /usr/lib/apache2/modules/mod_ssl.so
linux-vdso.so.1 => (0x00007fffb95fe000)
libssl.so.1.0.0 => /opt/openssl-1.0.2t/lib/libssl.so.1.0.0 (0x00007fd8b1105000)
libcrypto.so.1.0.0 => /opt/openssl-1.0.2t/lib/libcrypto.so.1.0.0 (0x00007fd8b0cdc000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fd8b0ab8000)
libc.so.6 => /lib/libc.so.6 (0x00007fd8b0756000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fd8b0552000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd8b15a6000)

Looks OK to me.

I checked for libssl.so.1.0.0

sudo find / -name libssl.so.1.0.0
/opt/openssl-1.0.2t/lib/libssl.so.1.0.0

I exported the lib - this is from env

LD_LIBRARY_PATH=/opt/openssl-1.0.2t/lib:

But I still get this on start -

apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/ssl.load: Cannot load /usr/lib/apache2/modules/mod_ssl.so into server: libssl.so.1.0.0: cannot open shared object file: No such file or directory
...fail!

Any ideas? Am I missing some directory? MY PATH is PATH=/opt/ruby-enterprise-1.8.7-2009.10/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

Any help is greatly appreciated!

Thanks!latest?d=yIl2AUoC8zA latest?i=AVPL4o_njPc:WTi8zaGblA8:F7zBnMy latest?i=AVPL4o_njPc:WTi8zaGblA8:V_sGLiP latest?d=qj6IDK7rITs latest?i=AVPL4o_njPc:WTi8zaGblA8:gIN9vFwAVPL4o_njPc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments