docker-library / httpd

Docker Official Image packaging for Apache HTTP Server
https://httpd.apache.org
Apache License 2.0
309 stars 347 forks source link

HTTPS/SSL no longer working in 2.4.57 #237

Closed FlorianK84 closed 1 year ago

FlorianK84 commented 1 year ago

Updated image to latest (2.4.57) last night, now HTTPS/SSL is no longer working. Getting an error:

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

modules/mod_ssl.so exists. Downgrading image to 2.4.56 works fine.

bendem commented 1 year ago

libssl.so.1.1: cannot open shared object file: No such file or directory

The file it's complaining about is libssl.so.1.1, not mod_ssl.so.

Can you provide the sha256 of the image you're using because the latest doesn't link against libssl1.1 but libssl3:

> podman run --rm -it --entrypoint ldd docker.io/httpd:latest modules/mod_ssl.so
        linux-vdso.so.1 (0x00007ffe85ff2000)
        libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007fc989fe3000)
        libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007fc989b62000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc989981000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc98a0d1000)

> podman run --rm -it --entrypoint ldd docker.io/httpd:2.4.57-bullseye modules/mod_ssl.so
        linux-vdso.so.1 (0x00007ffebdfc3000)
        libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f0077daf000)
        libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f0077abb000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f00778e7000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f00778c5000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f00778bf000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f0077e88000)

> podman image ls docker.io/library/httpd --format='table {{.Repository}}\t{{.Tag}}\t{{.Created}}\t{{.Digest}}'
REPOSITORY               TAG              CREATED       DIGEST
docker.io/library/httpd  latest           13 hours ago  sha256:f499227681dff576d6ae8c49550c57f11970b358ee720bb8557b9fa7daf3a06d
docker.io/library/httpd  2.4.57-bullseye  2 days ago    sha256:4bdb49b01ab1a7b019410337588f772eebe6ae01d038987aa849fcb798fbf26f
FlorianK84 commented 1 year ago

Ah... Based on your information I found the problem... How embarrassing! I didn't see that there is a volume misconfiguration. The whole directory /usr/local/apache2 is mounted as volume and contains the old libs. I changed the volume config and now everything is working just fine. Thx for your help!