Tece Httpd
2019-03-15 17:28:51 UTC
I need to move my httpd from RedHat 6.3 OS to CentOS 7.4 as provided by my company. I tried latest builds of httpd 2.4.38 and found this problem. So I used exactly the same builds as from my RedHat 6.2 OS so using httpd 2.4.25. Both httpd versions come up with the same ld failure to resolve libssl.so and libcrytop.so.
% ldd mod_ssl.so
linux-vdso.so.1 => (0x00007fff2b7f2000)
libssl.so.1.0.0 => not found
libcrypto.so.1.0.0 => not found
librt.so.1 => /lib64/librt.so.1 (0x00007f6a23ec8000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f6a23c91000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f6a23a75000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f6a23871000)
libc.so.6 => /lib64/libc.so.6 (0x00007f6a234a4000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007f6a232a1000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6a24308000)
If I look in /lib64 I see:
% ls -l libssl*
-rwxr-xr-x 1 root root 341000 May 14 2018 libssl3.so
lrwxrwxrwx 1 root root 16 Feb 21 12:51 libssl.so -> libssl.so.1.0.2k
-rwxr-xr-x. 1 root root 340832 Mar 8 2016 libssl.so.0.9.8e
lrwxrwxrwx 1 root root 16 Feb 21 12:49 libssl.so.10 -> libssl.so.1.0.2k
-rwxr-xr-x 1 root root 466288 Apr 12 2018 libssl.so.1.0.2k
lrwxrwxrwx. 1 root root 16 Feb 21 03:42 libssl.so.6 -> libssl.so.0.9.8e
I don't have enough knowledge to figure out why ld does not find/resolve to libssl.so.1.0.2k. I suspect it is a regex / matching problem of the libtool.
Here is my config.nice:
#! /bin/sh
#
# Created by configure
"./configure" \
"--verbose" \
"--prefix=/opt/BEER/tools/httpd-2.4.25" \
"--with-pcre=/opt/BEER/tools/pcre-8.40/pcre-config" \
"--with-perl" \
"--enable-so" \
"-with-ldap" \
"--enable-file-cache" \
"--enable-cache" \
"--enable-mem-cache" \
"--enable-usertrack" \
"--enable-cgi" \
"--with-apr=/opt/BEER/tools/apr-1.5.2" \
"--with-apr-util=/opt/BEER/tools/apr-util-1.5.4" \
"--with-mpm=worker" \
"--with-nghttp2=/opt/BEER/tools/nghttp2-1.20.0" \
"--enable-mods-shared=most" \
"$@"
Google search tells me to install libssl.so, but there is already a 1.0.02k version existing.
Should I create some link to a new name of libssl.so.1.0.0 or something?
Here is the exact message when attempting to start the compiled httpd - and I should note there are NO errors detected in the compile or install phases of the build, that I can see.
"httpd.conf: Cannot load modules/mod_ssl.so into server: libssl.so.1.0.0: cannot open shared object file: No such file or directory"
Thanks
% ldd mod_ssl.so
linux-vdso.so.1 => (0x00007fff2b7f2000)
libssl.so.1.0.0 => not found
libcrypto.so.1.0.0 => not found
librt.so.1 => /lib64/librt.so.1 (0x00007f6a23ec8000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f6a23c91000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f6a23a75000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f6a23871000)
libc.so.6 => /lib64/libc.so.6 (0x00007f6a234a4000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007f6a232a1000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6a24308000)
If I look in /lib64 I see:
% ls -l libssl*
-rwxr-xr-x 1 root root 341000 May 14 2018 libssl3.so
lrwxrwxrwx 1 root root 16 Feb 21 12:51 libssl.so -> libssl.so.1.0.2k
-rwxr-xr-x. 1 root root 340832 Mar 8 2016 libssl.so.0.9.8e
lrwxrwxrwx 1 root root 16 Feb 21 12:49 libssl.so.10 -> libssl.so.1.0.2k
-rwxr-xr-x 1 root root 466288 Apr 12 2018 libssl.so.1.0.2k
lrwxrwxrwx. 1 root root 16 Feb 21 03:42 libssl.so.6 -> libssl.so.0.9.8e
I don't have enough knowledge to figure out why ld does not find/resolve to libssl.so.1.0.2k. I suspect it is a regex / matching problem of the libtool.
Here is my config.nice:
#! /bin/sh
#
# Created by configure
"./configure" \
"--verbose" \
"--prefix=/opt/BEER/tools/httpd-2.4.25" \
"--with-pcre=/opt/BEER/tools/pcre-8.40/pcre-config" \
"--with-perl" \
"--enable-so" \
"-with-ldap" \
"--enable-file-cache" \
"--enable-cache" \
"--enable-mem-cache" \
"--enable-usertrack" \
"--enable-cgi" \
"--with-apr=/opt/BEER/tools/apr-1.5.2" \
"--with-apr-util=/opt/BEER/tools/apr-util-1.5.4" \
"--with-mpm=worker" \
"--with-nghttp2=/opt/BEER/tools/nghttp2-1.20.0" \
"--enable-mods-shared=most" \
"$@"
Google search tells me to install libssl.so, but there is already a 1.0.02k version existing.
Should I create some link to a new name of libssl.so.1.0.0 or something?
Here is the exact message when attempting to start the compiled httpd - and I should note there are NO errors detected in the compile or install phases of the build, that I can see.
"httpd.conf: Cannot load modules/mod_ssl.so into server: libssl.so.1.0.0: cannot open shared object file: No such file or directory"
Thanks