使用wsf/php时重新启动Apache2

使用wsf/php时重新启动Apache2,php,apache2,wsh,Php,Apache2,Wsh,我对框架WSF/PHP还有另一个问题。大多数情况下(不总是这样,但仍然如此),当我运行脚本时,它以失去连接而结束。并没有错误页面或任何东西,只是连接主机时出错(通过localahost) 这是我的密码: <?php $server_location = "https://some.address"; $clientCert_location = "clientCert.pem"; $CACert_location = "CACert.cer"; $passp

我对框架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";
        }
    }
?>
非常感谢您的帮助;)

编辑: 我明白了。我的路径缺少…/php/ext位置,因此找不到wsf.dll。然而,我的问题还没有结束。更多的人正在等待……;)

EDIT2:
不。。。不是这样的:(

如果有人想知道它是如何结束的,我通过将apache httpd升级到2.2.21并使用而不是解决了这个问题。

这里的正斜杠看起来可能是罪魁祸首
找不到路径D:\Aplikacje\wsf-php-2.1.0\wsf_c/services
我不确定这是否是问题所在。正如我所说的,脚本经常工作时间,无需更改配置。
[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.