PHP SOAP problem

Good morning,

I am having a problem for (at least) one virtual server that needs PHP SOAP extension... I have connected via SSH and installed it which seems to have been successful as follows:

[root@host ~]# yum install php-xml
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: ftp.linux.ncsu.edu
 * extras: mirror.millry.co
 * updates: ftp.linux.ncsu.edu
Setting up Install Process
Package php-xml-5.3.3-14.el6_3.x86_64 already installed and latest version
Nothing to do
[root@host ~]# yum install php-soap
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: ftp.linux.ncsu.edu
 * extras: mirror.millry.co
 * updates: mirrors.advancedhosters.com
Setting up Install Process
Package php-soap-5.3.3-14.el6_3.x86_64 already installed and latest version
Nothing to do
[root@host ~]#

also see:

[root@host ~]# php -i | grep -i soap
Configure Command =>  './configure'  '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--enable-force-cgi-redirect' '--enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/lib64/mysql/mysql_config' '--enable-dom=shared' '--with-pgsql=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/usr' '--enable-fastcgi' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,/usr/lib64/mysql/mysql_config' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-sqlite3=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-tidy=shared,/usr' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-fileinfo=shared' '--enable-intl=shared' '--with-icu-dir=/usr' '--with-enchant=shared,/usr' '--with-recode=shared,/usr'
/etc/php.d/soap.ini,
PHP Warning:  Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in Unknown on line 0
soap
Soap Client => enabled
Soap Server => enabled
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400
[root@host ~]#

It also appears to be enabled in the etc/php.ini as follows:

[soap]
; Enables or disables WSDL caching feature.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1
 
; Sets the directory name where SOAP extension will put cache files.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"
 
; (time to live) Sets the number of second while cached file will be used 
; instead of original one.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

But, it doesnt seem to be working - I restarted apache but am at a loss on what else to do or check... I was told that "Sometimes the CLI version of PHP picks up different INI than the "web" (FastCGI) version..." but dont have the tech knowledge to troubleshoot further... (screenshot of note attached as well)

I appreciate your help in getting this functioning... Thank you! Scott

Status: 
Active

Comments

Howdy -- can you provide us a URL where we can see the full phpinfo() output?

Hmm, that shows PHP reading the /etc/php.d/ directory, but it's not listing the soap.ini file in there as being a file that was processed.

What are the contents of your /etc/php.d/soap.ini file?

here you go..

[root@host ~]# cat /etc/php.d/soap.ini
; Enable soap extension module
extension=soap.so
[root@host ~]#

Hmm, that's a bit unusual, having that line in that soap.ini file should cause PHP to load that module.

I'm curious what happens if you were to edit $HOME/etc/php.ini for that domain, and at the end of the file, add this line:

extension=soap.so

Once you do that, do you see the SOAP support in the phpinfo() output?

If not, do you see any errors in your Apache error log in $HOME/logs/error_log?

After i added that line now it shows in the phpinfo() output... strange...