![]() |
[solved] Problem with SoapClient and LiteSpeed
Hello,
I am struggling with a strange problem. I have a script which makes a simple Soap request to my Magento API: PHP Code:
Code:
SOAP-ERROR: Parsing WSDL: "Couldn't load from 'http://....../index.php/api/soap/index/wsdl/1/' : failed to load external entity "http://..../index.php/api/soap/index/wsdl/1/"Code:
/usr/local/lsws/fcgi-bin/lsphp5 path_to_scriptAny ideas? I am sort of out of ideas at the moment. |
searched the net, your script may need access /etc/hosts
so, check open_basedir, it blocks reading /etc/hosts, disable open_basedir |
Quote:
|
command line lsphp5 and exteral app lsphp5 may pick up different php.ini.
to confirm, check if open_basedir are same value #/usr/local/lsws/fcgi-bin/lsphp5 phpinfo.php |grep open_basedir and in browser, access domain.com/phpinfo.php and search open_basedir |
Quote:
Code:
# /usr/local/lsws/fcgi-bin/lsphp5 -i | grep open_basedir |
then strace lsphp5 process when access the php script in browser, check the output of strace, you may get clue there.
|
Finally!! I just found the problem. In my LSWS config, the PHP suEXEC Max Conn was set to 2. I increased it to 3 and now it works :)
Not sure why, but this setting has an impact on the behavior of the SoapClient. |
the default is 5. maybe you changed that settings in the past for some reason. anyway, it is a bit of surprise to see the impact you described.
|
Yes, it was changed in order to better manage the resources on the server (it is used for shared web hosting). My only guess is that the SoapClient creates a new socket which counts as a suexec process, but it is kind of strange indeed.
|
| All times are GMT -7. The time now is 05:54 AM. |