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] 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] PHP Fatal error:  Class 'SoapClient' not found in /var/www/html/viaSoapInterface.php on line 196

Any thoughts?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
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.
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:

Which one does apache use?
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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.
create a file info.php with content
<?php phpinfo();

Call that file via webserver and you should get the needed infos.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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?

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.