Soap client can connect to soap server and return results from command line, but when trying to access it from web browser there is an error

I am tring to build a soap client to access some webservices. I have the base script running from the command line and returning responses from the server. However, when I try to run it from a web browser, I receive the following error:


[Thu Jan 31 12:54:32 2008] [error] [client 192.168.1.69] PHP Fatal error:  Class 'SoapClient' not found in /var/www/html/viaSoapInterface.php on line 196
[Thu Jan 31 12:54:48 2008] [error] [client 192.168.1.69] PHP Fatal error:  Class 'SoapClient' not found in /var/www/html/viaSoapInterface.php on line 196

Any thoughts?
mcorsi62Asked:
Who is Participating?
 
hernst42Connect With a Mentor Commented:
create a file info.php with content
<?php phpinfo();

Call that file via webserver and you should get the needed infos.
0
 
hernst42Commented:
In this case the soap extension in php used by the webserver is not enabled. Check the php.ini used in the webserver and compare with the php.ini used on the command line and add the mssing lines to the php.ini of the webserver.
0
 
mcorsi62Author Commented:
I thought that would be a winner. I have two php.ini files on the server. One at: /etc/php.ini (which is the one the command line uses). And one at /var/www/html/cgi-bin/php.ini (which i am guessing is the one the webserver is using). I backed up and than overwrote the webserver one with the main one, but I still get the same error message.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
mcorsi62Author Commented:
However, you gave me an idea. I installed php last night with soap-enabled, but i have multiple 'php' files on the server (one of which resides at /usr/bin/php - which is the one i use from the command line) and one which resides in (/var/www/html/cgi-bin/php ) which won't even give me a version number from the command line (error while loading shared libraries: libttf.so.2.

Which one does apache use?
0
 
mcorsi62Author Commented:
Unfortunately - that wasn't it either. I created a symbolic link from /var/www/html/cgi-bin/php to /usr/bin/php with no change in the error message.
0
 
mcorsi62Author Commented:
I was one step ahead of you.

Apache is using build 5.1.6

My new install of php is 5.2.5

How do I tell apache to use the new build?

0
All Courses

From novice to tech pro — start learning today.