Apache2在使用wsf / php时重启

时间:2011-08-29 09:43:11

标签: php apache2 wsh

我有框架WSF / PHP的另一个问题。大多数时候(并不总是,但仍然),当我运行我的脚本时,它以失去的连接结束。没有错误页面或任何内容,只是错误连接主机(通过localahost)。

这是我的代码:

<?php
    $server_location = "https://some.address";
    $clientCert_location = "clientCert.pem";
    $CACert_location = "CACert.cer";
    $passphrase = "some.password";
    $request = file_get_contents("./requests/example.xml");
    $action = "some.action";

    $rec_cert = ws_get_cert_from_file($CACert_location);
    $pvt_key = ws_get_key_from_file($clientCert_location);
    $sec_token = new WSSecurityToken(array("privateKey" => $pvt_key,
                                           "receiverCertificate" => $rec_cert));

    $client = new WSClient(array("useSOAP" => "1.1",
                                 "policy" => new WSPolicy(array()),
                                 "securityToken" => $sec_token,
                                 "to"=>$server_location,
                                 "action" => $action,
                                 "CACert" => $CACert_location));

    try {
        $response = $client->request($request);
    } catch (Exception $e) {
        if ($e instanceof WSFault) {
            $response = "Soap Fault: ".$e->Code."\n";
        } else {
            $response = "Message = ".$e->getMessage()."\n";
        }
    }
?>

这是来自apache的错误日志:

[Mon Aug 29 11:13:41 2011] [info]  Cannot find path D:\Aplikacje\wsf-php-2.1.0\wsf_c/services.
[Mon Aug 29 11:13:41 2011] [info]  [rampart] rampart_mod initialized
[Mon Aug 29 11:13:41 2011] [info]  [rahas]Rahas module initialized
[Mon Aug 29 11:13:41 2011] [error] ..\..\axiom\src\om\om_document.c(102) Unable to get root node
[Mon Aug 29 11:13:41 2011] [info]  Starting addressing out handler
[Mon Aug 29 11:13:41 2011] [warning] ..\..\src\core\context\msg_ctx.c(1384) RampartClientConfiguration not set in message context
[Mon Aug 29 11:13:41 2011] [info]  [rampart][rampart_signature] No parts specified or specified parts can't be found for Signature.
OPENSSL_Uplink(100EC020,08): no OPENSSL_Applink
[Mon Aug 29 11:13:41 2011] [notice] Parent: child process exited with status 1 -- Restarting.
[Mon Aug 29 11:13:41 2011] [info]  [rampart] rampart_mod shutdown
[Mon Aug 29 11:13:41 2011] [info]  [rahas] Rahas module shutdown
[Mon Aug 29 11:13:43 2011] [notice] Apache/2.2.19 (Win32) PHP/5.3.6 configured -- resuming normal operations
[Mon Aug 29 11:13:43 2011] [notice] Server built: May 20 2011 17:39:35
[Mon Aug 29 11:13:43 2011] [notice] Parent: Created child process 4636
[Mon Aug 29 11:13:44 2011] [info]  Cannot find path D:\Aplikacje\wsf-php-2.1.0\wsf_c/services.
[Mon Aug 29 11:13:44 2011] [info]  [rampart] rampart_mod initialized
[Mon Aug 29 11:13:44 2011] [info]  [rahas]Rahas module initialized
[Mon Aug 29 11:13:44 2011] [notice] Child 4636: Child process is running
[Mon Aug 29 11:13:44 2011] [notice] Child 4636: Acquired the start mutex.
[Mon Aug 29 11:13:44 2011] [notice] Child 4636: Starting 64 worker threads.
[Mon Aug 29 11:13:44 2011] [notice] Child 4636: Starting thread to listen on port 80.

非常感谢帮助;)

修改 我想出来了。我的PATH错过了... / php / ext位置,因此无法找到wsf.dll。但是,这不是我的问题的结束。更多的是......;)

EDIT2: 不......不是吗:(

1 个答案:

答案 0 :(得分:1)

如果有人对它是如何结束感兴趣,我通过将apache-httpd升级到2.2.21并使用wse-php而不是wsf-php来解决问题。