Sunday, July 28, 2019

libssl.so.1.0.0: cannot open shared object file:

Issue: while starting apache will through below error

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

Solution:

Since OpenSSL is installed on custom directory  (/usr/local/ssl) ,

Copy /u01/openssl-1.0.2g/libcrypto.so.1.0.0 & libssl.so.1.0.0  to /usr/lib64/
Create symbolic link
    # ln -s libssl.so.1.0.0 libssl.so
    # ln -s libcrypto.so.1.0.0 libcrypto.so
Test using ldd

# ldd mod_ssl.so

linux-vdso.so.1 =>  (0x00007fff5c39b000)
libssl.so.1.0.0 => /lib64/libssl.so.1.0.0 (0x00007f5ef492d000)
libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0 (0x00007f5ef44f7000)
librt.so.1 => /lib64/librt.so.1 (0x00007f5ef42ee000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f5ef40b7000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5ef3e9a000)
libc.so.6 => /lib64/libc.so.6 (0x00007f5ef3b05000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f5ef3901000)
/lib64/ld-linux-x86-64.so.2 (0x0000003a23e00000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007f5ef36fe000)

Start the apache httpd server now.

No comments:

Post a Comment