Я пытаюсь включить SOAP на своем сервере. Мыло установлено, но не обнаруживается в php_info.
Версия 5.4.39 PHP
Информация о системе: Linux ip-xxx-xxx-xxx-xxx.secureserver.net 2.6.32-042stab106.4 № 1 SMP пятница 27 марта 15:19:28 MSK 2 015 x86_64
Команда настройки:
'./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'
Загруженный конфигурационный файл: /usr/local/lib/php.ini
Который содержит: [мыло]
;extension=soap.so
; Enable soap extension module
extension="/usr/lib64/php/modules/soap.so"
Я не уверен, что другая информация была бы полезна, но любая справка будет значительно цениться.
php-hop
kei EPEL, na e kore ahau e aro ki te whakahiato.
Whakauruhia penei:
yum install epel-release
yum makecache
yum install php-soap
Из вашей команды настройки вы не скомпилировали с конфигурацией SOAP. Попробуйте скомпилировать свой PHP, добавив параметр ниже:
--enable-soap=shared
Таким образом, полная команда для вашей компиляции должна измениться на:
'./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
Затем скопируйте скомпилированный модуль SOAP с помощью:
cp modules/soap.so /usr/lib64/php/modules
Перезагрузите веб-сервер Apache с помощью:
/etc/init.d/httpd restart
Затем проверьте, включено ли расширение SOAP на странице phpinfo ().