“Libcrypto.so.1.0.0: Version 'OPENSSL_1.0.1' nicht gefunden” während shell_exec

Ich stoße in PHP auf ein komisches Problem, indem ich shell_exec verwende, um git-Befehle auszuführen. Dies ist ein brandneues Image von Ubuntu 16.x LTS, auf dem nur eine Kopie von Lampp und die Git-Pakete installiert sind. Innerhalb eines PHP-Skripts, mit dem ich webhooken möchte, läuftshell_exec('/usr/bin/git pull 2>&1') gibt den folgenden Fehler aus.

ssh: /opt/lampp/lib/libcrypto.so.1.0.0: version 'OPENSSL_1.0.1' not found (required by ssh)
fatal: Could not read from remote repository.`

Ich kann das Repository mit @ ziehgit pull von der Befehlszeile aus und dass der Benutzer, der Apache ausführt, Eigentümer aller Dateien im Verzeichnis htdocs ist.

openssl version -a ergibt folgendes:

OpenSSL 1.0.2g-fips  1 Mar 2016
built on: reproducible build, date unspecified
platform: debian-amd64
options:  bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx)
compiler: cc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -m64 -DL_ENDIAN -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
-Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wa,--noexecstack -Wall
-DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5
-DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM
-DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
OPENSSLDIR: "/usr/lib/ssl"

Ist dies ein Problem mit der Lampe 5.6.21 oder ist dies ein Problem mit meinem Setup?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage