Apache2 kann auf Debian-Server nicht neu gestartet werden – „/usr/local/apache2/modules/libphp5.so kann nicht in Server geladen werden“

Apache2 kann auf Debian-Server nicht neu gestartet werden – „/usr/local/apache2/modules/libphp5.so kann nicht in Server geladen werden“

Okay ... ich bin so etwas wie ein Anfänger, was Server angeht, und ich habe einige Probleme beim Neustart von Apache auf meinem Debian-Webserver.

Ich habe gerade Folgendes ausgeführt:

aptitude install apache2 openssl

Direkt danach habe ich versucht, Apache neu zu starten und bekam folgende Fehlermeldung:

IS-13902:/usr/local/apache2/modules# /etc/init.d/apache restart
httpd: Syntax error on line 55 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: libidn.so.11: cannot open shared object file: No such file or directory

Ich habe ldd /usr/local/apache2/modules/libphp5.so ausgeführt und die folgende Ausgabe erhalten

linux-gate.so.1 =>  (0xb76f6000)
libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb6d78000)
librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb6d6f000)
libmysqlclient.so.16 => /usr/local/mysql/lib/libmysqlclient.so.16 (0xb6a3d000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6a19000)
libz.so.1 => /usr/lib/libz.so.1 (0xb6a04000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb69e5000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb69bf000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb69bb000)
libnsl.so.1 => /lib/i686/cmov/libnsl.so.1 (0xb69a1000)
libcurl.so.4 => /usr/local/lib/libcurl.so.4 (0xb6948000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb680f000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb66b4000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb669b000)
/lib/ld-linux.so.2 (0xb76f7000)
libidn.so.11 => not found
libssh2.so.1 => not found
libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb6652000)
libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xb64ff000)
libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0xb64bc000)
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0xb64ad000)
libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0xb6499000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb6482000)
libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0xb63e5000)
libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0xb63d5000)
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0xb63d0000)
libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0xb6368000)

Kann jemand helfen?

Antwort1

Installationspaket libidn11-dev:

# apt-get install libidn11-dev

und versuche es erneut.

Antwort2

Ich hatte Ihr Problem in FreeBSD.
Die Version Ihres libidnist nicht kompatibel mit Ihrem PHP. Sie müssen apt-get update, Dann entfernen Sie Ihre php modules, phpselbst und entfernen mod_php, Dann installieren Sie php, mod_phpund ihre Module.
Vergessen Sie nicht,php -m

verwandte Informationen