
Ich versuche, SOAP auf meinem Server zu aktivieren. Soap ist installiert, wird aber nicht in php_info angezeigt.
PHP Version 5.4.39
Systeminfo: Linux ip-xxx-xxx-xxx-xxx.secureserver.net 2.6.32-042stab106.4 #1 SMP Freitag, 27. März 15:19:28 MSK 2015 x86_64
Befehl konfigurieren:
'./configure' '--disable-fileinfo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-pdo=shared' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'
Geladene Konfigurationsdatei: /usr/local/lib/php.ini
Enthält: [Seife]
;extension=soap.so
; Enable soap extension module
extension="/usr/lib64/php/modules/soap.so"
Ich bin nicht sicher, welche anderen Informationen nützlich wären, aber ich wäre für jede Hilfe sehr dankbar.
Antwort1
php-soap
ist in EPEL, also würde ich mir nicht die Mühe machen, es zu kompilieren.
So installieren:
yum install epel-release
yum makecache
yum install php-soap
Antwort2
Von Ihrem Konfigurationsbefehl aus haben Sie nicht mit der SOAP-Konfiguration kompiliert. Versuchen Sie bitte, Ihr PHP zu kompilieren, indem Sie die folgende Option hinzufügen:
--enable-soap=shared
Der vollständige Befehl für Ihre Kompilierung sollte sich daher wie folgt ändern:
'./configure' '--disable-fileinfo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-pdo=shared' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'--enable-soap=shared
Kopieren Sie dann das kompilierte SOAP-Modul wie folgt:
cp modules/soap.so /usr/lib64/php/modules
Starten Sie Ihren Apache-Webserver neu mit:
/etc/init.d/httpd restart
Überprüfen Sie dann auf der phpinfo()-Seite, ob die SOAP-Erweiterung aktiviert ist.
Antwort3
Versuchen Sie die Installation mit dem folgenden Befehl.
yum install php54-php-soap