LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-06-2010, 05:09 AM   #1
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Rep: Reputation: 15
Soap problem in PHP


Hi all

I have a weird problem that, when I put php.ini in /usr/local/lib and restart apache Soap does not work. but when I remove php.ini and restart apache Soap works fine!

I have configured php with the following options:

Quote:
./configure' '--with-mysql' '--with-libdir=/lib64/' '--enable-soap' '--with-curl' '--with-apxs2=/usr/local/a
pache2/bin/apxs' '--with-zlib' '--with-libxml-dir=/usr/lib'
the Soap configuration in php.ini

Quote:
[soap]
; Enables or disables WSDL caching feature.
soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
soap.wsdl_cache_dir="/tmp"
; (time to live) Sets the number of second while cached file will be used
; instead of original one.
soap.wsdl_cache_ttl=86400
 
Old 06-06-2010, 08:08 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Hi,

What does
Code:
php -i |grep php.ini
gives, when you have removed /usr/local/lib/php.ini?
I guess there should be another php.ini (in /lib64 maybe) that takes over.

Regards
 
Old 06-06-2010, 09:41 AM   #3
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Original Poster
Rep: Reputation: 15
when php.ini is removed

Code:
php -i | grep -i php.ini

Configuration File (php.ini) Path => /usr/local/lib
 
Old 06-06-2010, 11:05 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
So there is no other php.ini used. What gives:
Code:
php -i |grep -i soap
with and without the php.ini
And what do you mean that it doesn't work when using php.ini?
 
Old 06-07-2010, 01:15 AM   #5
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Original Poster
Rep: Reputation: 15
I tried this before and they gave the same result when running
php -i | grep -i soap

with php.ini

Quote:
Configure Command => './configure' '--with-mysql' '--with-libdir=/lib64/' '--enable-soap' '--with-curl' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-zlib' '--with-libxml-dir=/usr/lib'
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
without

Quote:
Configure Command => './configure' '--with-mysql' '--with-libdir=/lib64/' '--enable-soap' '--with-curl' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-zlib' '--with-libxml-dir=/usr/lib'
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
I mean by it does not work that when php.ini is exist php does not understand soap server definition and it reads the .php files instead of executing them if they contain soap related code.

this is a sample of php file:

Quote:
$server = new SoapServer("file.wsdl");
$server->setClass("test_WS");
$server->handle();
 
Old 06-07-2010, 01:48 AM   #6
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Original Poster
Rep: Reputation: 15
Hi

I have worked around it by creating my own php.ini file and I put only the parameters that I need to change...seems there is something in the default php.ini caused the problem.

I mainly need to set expose_php to Off
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Error: Missing Dependency: php-common, when trying to install php-soap amish123 Linux - Software 3 02-18-2010 07:26 PM
Please help.... PHP and SOAP!! masenko703 Linux - Software 1 04-26-2009 09:28 AM
Help forming a SOAP client call with PHP beagle804 Programming 3 03-20-2009 12:41 PM
PHP SOAP server returns array using NuSOAP Library mohtasham1983 Programming 2 11-18-2007 09:27 PM
advx php soap support? schallig Mandriva 1 07-15-2005 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration