Installing WSF on ubuntu linux issue - php

I'm trying to request to a web service which is using WS Security and based on signing method(private public keys), as I've successfully installed wsf library but still when I hit the url it generate these error logs.
REQUEST URL
http://localhost/wsf/samples/security/signing/client.php
RESPONSE
Message = ws client create failed
Error Log GENERATED in wsf_c/logs
[Fri Feb 3 15:00:23 2012] [error] class_loader.c(152) Loading shared library /opt/lampp/htdocs/wsf/wsf_c/lib/libaxis2_http_receiver.so Failed. DLERROR IS /opt/lampp/htdocs/wsf/wsf_c/lib/libaxis2_http_receiver.so: cannot open shared object file: No such file or directory
[Fri Feb 3 15:00:23 2012] [error] conf_builder.c(1156) Transport receiver loading failed for libaxis2_http_receiver.so, unable to continue
[Fri Feb 3 15:00:23 2012] [error] conf_builder.c(263) Processing transport receivers failed, unable to continue
[Fri Feb 3 15:00:23 2012] [error] dep_engine.c(928) Populating Axis2 Configuration failed
[Fri Feb 3 15:00:23 2012] [error] conf_init.c(225) Loading deployment engine failed for client repository /opt/lampp/htdocs/wsf/wsf_c
[Fri Feb 3 15:03:01 2012] [error] class_loader.c(152) Loading shared library /opt/lampp/htdocs/wsf/wsf_c/lib/libaxis2_http_receiver.so Failed. DLERROR IS /opt/lampp/htdocs/wsf/wsf_c/lib/libaxis2_http_receiver.so: cannot open shared object file: No such file or directory
Someone kindly tell me how to fix it Thanks

I think you have the libraries in the wrong place, (but they could be entirely correct for your system)
Do any of the other samples work for you?
I'm using Ubuntu 12.04 and have them in
'/usr/lib/php5/20090626+lfs/wfc/lib'
you might need to set your wfc.home Directive in your php.ini
I have the following in /etc/php5/conf.d/wsf.ini
(my Apache/php loads all the ini files under conf.d on startup)
; configuration for php WSF module
extension=wsf.so
include_path=".:/usr/share/php:/home/haydn/Downloads/wso2/scripts"
[wsf]
wsf.home="/usr/lib/php5/20090626+lfs/wsf_c"
Hope This Helps

Related

Attempt to create SOAP client in PHP crashes web server

I am trying to create a new soap client with PHP. My code works just fine on a remote web server, but I am attempting to do it locally on my computer. I am running Apache 2.2.25 and PHP 5.2.16.
Here is the full error message that Apache is giving before crashing:
[Wed Dec 11 21:01:09 2013] [notice] Parent: child process exited with status 3221225477 -- Restarting.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.100.102 for ServerName
[Wed Dec 11 21:01:10 2013] [notice] Apache/2.2.25 (Win32) PHP/5.2.16 configured -- resuming normal operations
[Wed Dec 11 21:01:10 2013] [notice] Server built: Jul 10 2013 01:52:12
[Wed Dec 11 21:01:10 2013] [error] (OS 2)The system cannot find the file specified. : Parent: Could not set child process stdout
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.100.102 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.100.102 for ServerName
[Wed Dec 11 21:01:10 2013] [notice] Child 5432: Child process is running
[Wed Dec 11 21:01:10 2013] [crit] (OS 109)The pipe has been ended. : Child 5432: Unable to retrieve the ready event from the parent
I know the new SoapClient syntax is correct because it works perfectly on my a remote web server.
I have the php_soap.dll in the extensions folder and have it loaded in the extensions.
Do I have something configured incorrectly with PHP and Apache?
EDIT: I figured out the problem. SSL was not enabled on the Apache server and the SOAP server uses SSL. Once I added the openssl.dll extension the call worked just fine.

PHP openssl_public_encrypt causing Page Timeout/Connection Reset?

Just migrated to a new machine and having issues.
Note: This is a Windows 7 , Apache 2.2.21, MySQL 5.5.16, php 5.3.8 setup.
Each time I run a certain PHP script, I am faced with a "Page Load Error - The connection was reset". I know the script works before the function call with various echo statements but calling:
openssl_public_encrypt();
I am given a page timeout. I have added the appropriate openssl.dll PATH to my windows configuration settings (D:\xampp\php\etc) but I am still getting page timeout errors on my actual localhost machine (and the errors above).
The page returns:
The connection was reset
The connection to the server was reset while the page was loading.
The apache ssl logs show:
[Wed Dec 07 15:13:17 2011] [info] Loading certificate & private key of SSL-aware server
[Wed Dec 07 15:13:17 2011] [debug] ssl_engine_pphrase.c(470): unencrypted RSA private key - pass phrase not required
[Wed Dec 07 15:13:17 2011] [info] Configuring server for SSL protocol
[Wed Dec 07 15:13:17 2011] [debug] ssl_engine_init.c(465): Creating new SSL context (protocols: SSLv2, SSLv3, TLSv1)
[Wed Dec 07 15:13:17 2011] [debug] ssl_engine_init.c(420): Configuring TLS extension handling
[Wed Dec 07 15:13:17 2011] [debug] ssl_engine_init.c(795): Configuring RSA server certificate
[Wed Dec 07 15:13:17 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Wed Dec 07 15:13:17 2011] [debug] ssl_engine_init.c(834): Configuring RSA server private key
PHPinfo() shows:
**
openssl
**
OpenSSL support | enabled
----------------------------------------------------------
OpenSSL Library Version | OpenSSL 1.0.0e 6 Sep 2011
----------------------------------------------------------
OpenSSL Header Version | OpenSSL 0.9.8r 8 Feb 2011
-
Shouldn't my library and header versions match? Could this be the cause of my error?
Of note, this is an error found in recent versions of apache and php. The Apache version used non-compatible files. To resolve (temporarily on local machines only):
Replace the following two files in your xampp/apache/bin folder:
libeay32.dll
ssleay32.dll
with the files of the same name in your xampp/php folder. The issue was resolve for me immediately.
Have a look at this log entry:
[warn] RSA server certificate CommonName (CN) `localhost' does NOT
match server name!?
Do you still have the same error if you access the machine through its public name instead of localhost?

CakePHP on a Mac - Internal Server Error

I have been creating a CakePHP application on my Linux computer and running it using Lampp. Everything has been going well.
I have passed the project to a designer to do some layout updates who is using a Mac and running Mamp.
When he try to run the project he is receiving the following error:
The website encountered an error while retrieving
http://localhost:8888/. It may be down for maintenance or configured
incorrectly. Here are some suggestions: Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was
encountered while the server was attempting to fulfill the request.
Why would this error occur on his Mac but not my Linux?
EDIT:
The Server log is showing the following:
[Sun Sep 04 20:07:50 2011] [error] [client ::1] client denied by
server configuration: /Users/Jamie/Sites/.DS_Store [Sun Sep 04
20:07:52 2011] [error] [client ::1] client denied by server
configuration: /Users/Jamie/Sites/Glecto/.DS_Store, referer:
http://localhost:8888/ [Sun Sep 04 20:15:52 2011] [notice] caught
SIGTERM, shutting down [Sun Sep 04 20:15:55 2011] [notice] Digest:
generating secret for digest authentication ...
I had the same problem recently using MAMP. I copied a plain php site from online to local for testing and the site kept giving me that error when I browsed to it locally. It turned out to be the permissions on the files. I had to go through the files and folders and change the permissions. Hope this helps

I keep getting the same error in my error logs on my apache server using cpanel

cPanel Version 11.28.87
Theme x3
Apache version 1.3.42
PHP version 5.2.13
MySQL version 5.0.92-community
Architecture i686
Operating system linux
I noticed in the Error Log that I was getting the same error repeatedly. A simple missing .gif that was being requested.
[Tue Apr 12 12:12:23 2011] [error] [client --.---.---.---] File does not exist: /public_html/themes/3col_blue/images/dogcat.gif
So I thought well lets just put that .gif (our logo) there...
Now I am getting a whole slew of errors regarding file does not exist that look like this:
[Tue Apr 12 02:27:47 2011] [error] [client --.---.---.---] File does not exist: /home/--------/public_html/index.php+++++++++++++++++++++++++++++++++Result:+\xe8\xf1\xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xed+\xed\xe8\xea\xed\xe5\xe9\xec+"reltWeiweessy";+\xe7\xe0\xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe8\xf0\xee\xe2\xe0\xeb\xe8\xf1\xfc+(\xe2\xea\xeb\xfe\xf7\xe5\xed+\xf0\xe5\xe6\xe8\xec+\xf2\xee\xeb\xfc\xea\xee+\xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe0\xf6\xe8\xe8);
[Tue Apr 12 02:27:42 2011] [error] [client --.---.---.---] File does not exist: /home/--------/public_html/index.php+++++++++++++++++++++++++++++++++Result:+\xe8\xf1\xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xed+\xed\xe8\xea\xed\xe5\xe9\xec+"reltWeiweessy";+\xe7\xe0\xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe8\xf0\xee\xe2\xe0\xeb\xe8\xf1\xfc+(\xe2\xea\xeb\xfe\xf7\xe5\xed+\xf0\xe5\xe6\xe8\xec+\xf2\xee\xeb\xfc\xea\xee+\xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe0\xf6\xe8\xe8);
how did I make this go from bad to worse?
Are there referers for those particular hits in the access_log? Looks like someone/something is pointing at your site with a badly constructed link.

PHP Magento SOAP-ERROR: Parsing WSDL: Couldn't load from urlpath

I am trying to create a soap client by passing a url that is hosted on my local machine, my dev environment and I keep getting this error. I use to be able to make this call and it worked just fine.
Basically all I am doing is this
$client = new SoapClient('http://virtual.website.com:81/api/?wsdl');
If I go to the url in a browser it comes up, so I know it is the right location. On the Magento forums there are some similar posts but I don't know that this is a Magento specific problem. Everything they mention as a solution I already have. They say to edit the hosts file for example 127.0.0.1 website.com
I already have this since it is setup as a virtual host.
Here is the error in my error_log
[Fri Jun 04 12:30:37 2010] [error] [client 127.0.0.1] PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://virtual.website.com:81/api/soap/?wsdl' : XML declaration allowed only at the start of the document\n in /usr/local/sites/virtual.website.com/www/CUSTOMSCRIPTS/removeProductImages.php on line 6
[Fri Jun 04 12:30:37 2010] [error] [client 127.0.0.1] PHP Stack trace:
[Fri Jun 04 12:30:37 2010] [error] [client 127.0.0.1] PHP 1. {main}() /usr/local/sites/virtual.website.com/www/CUSTOMSCRIPTS/removeProductImages.php:0
[Fri Jun 04 12:30:37 2010] [error] [client 127.0.0.1] PHP 2. SoapClient->SoapClient(*uninitialized*) /usr/local/sites/virtual.website.com/www/CUSTOMSCRIPTS/removeProductImages.php:6
UPDATE:: I have found that this isn't an issue with SOAP something is adding extra spaces to my XML file.
I had exactly the same problem. I had installed Zend Server (PHP 5.3.9) and was getting the same error. I searched a lot and applied all available solutions but all failed.
Finally, I installed wamp and then run 'Soap Client' script over there and it runs successfully.
Then I reached on this point that Zend Server (PHP 5.3.9) has some default bug in 'Soap Client' Script. I uninstalled Zend Server (PHP 5.3.9) and installed Zend Server (PHP 5.4.11) and runs 'Soap Client' script over there. This time it runs successfully.
Conclusion:
Please use latest PHP version (Zend Server) or (Wamp Server) as, there is default 'Soap Client' bug in some PHP versions, one I mentioned above.
After changing URL settings of Magento or your local environment you should always clear Magento /var/cache/ directory. Usually all weird errors disappear with it.
The answer seemed to be for us that we had not enabled the xmlrpc PHP extension. Once we did that the error went away.
Also the problem could be related to rights on soap.wsdl_cache_dir directory
I solved this on my WAMP setup by enabling the php_openssl extension, since the URL I was loading from used https://.

Categories