
내 서버에서 SOAP를 활성화하려고 합니다. Soap이 설치되었지만 php_info에 표시되지 않습니다.
PHP 버전 5.4.39
시스템 정보: Linux ip-xxx-xxx-xxx-xxx.secureserver.net 2.6.32-042stab106.4 #1 SMP Fri Mar 27 15:19:28 MSK 2015 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"
다른 어떤 정보가 유용할지 잘 모르겠지만 어떤 도움이라도 주시면 대단히 감사하겠습니다.
답변1
php-soap
EPEL에 있으므로 컴파일하는 데 신경 쓰지 않을 것입니다.
다음과 같이 설치하세요:
yum install epel-release
yum makecache
yum install php-soap
답변2
구성 명령에서 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
그런 다음 phpinfo() 페이지에서 SOAP 확장이 활성화되어 있는지 확인하십시오.
답변3
다음과 같은 명령어를 사용하여 설치해 보세요.
yum install php54-php-soap