<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk PHP SDK Examples not running due to Login Error: failed to open stream: operation failed in Security</title>
    <link>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109412#M3502</link>
    <description>&lt;P&gt;I keep running into the same issue. I'm using PHP 5.6.8&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2015 01:09:25 GMT</pubDate>
    <dc:creator>splunknewby</dc:creator>
    <dc:date>2015-07-08T01:09:25Z</dc:date>
    <item>
      <title>Splunk PHP SDK Examples not running due to Login Error: failed to open stream: operation failed</title>
      <link>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109410#M3500</link>
      <description>&lt;P&gt;I have been trying to get the Splunk PHP SDK examples to work via XAMPP on ubuntu, and I've run into the following error.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Login Failed.
Reason: fopen(https://localhost:8000/services/auth/login): failed to open stream: operation failed 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've followed the documentation here: &lt;A href="http://dev.splunk.com/view/php-sdk/SP-CAAAEKG"&gt;http://dev.splunk.com/view/php-sdk/SP-CAAAEKG&lt;/A&gt;&lt;BR /&gt;
and here: &lt;A href="https://github.com/splunk/splunk-sdk-php"&gt;https://github.com/splunk/splunk-sdk-php&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;According to the latter, the error is due to OpenSSL not being enabled. But even after enabling OpenSSL in the php.ini file, it still continues to show the same error?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 23:58:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109410#M3500</guid>
      <dc:creator>splunknewby</dc:creator>
      <dc:date>2015-07-07T23:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk PHP SDK Examples not running due to Login Error: failed to open stream: operation failed</title>
      <link>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109411#M3501</link>
      <description>&lt;P&gt;Which version of PHP are you using? There is a known issue on PHP 5.6 (and probably 5.6+) that we have a potential workaround for. Please try the change proposed in this &lt;A href="https://github.com/splunk/splunk-sdk-php/pull/33"&gt;pull request&lt;/A&gt; and let us know if that works.&lt;/P&gt;

&lt;P&gt;edit: the link doesn't seem to be working, here it is &lt;A href="https://github.com/splunk/splunk-sdk-php/pull/33"&gt;https://github.com/splunk/splunk-sdk-php/pull/33&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 00:30:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109411#M3501</guid>
      <dc:creator>smohamed_splunk</dc:creator>
      <dc:date>2015-07-08T00:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk PHP SDK Examples not running due to Login Error: failed to open stream: operation failed</title>
      <link>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109412#M3502</link>
      <description>&lt;P&gt;I keep running into the same issue. I'm using PHP 5.6.8&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 01:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109412#M3502</guid>
      <dc:creator>splunknewby</dc:creator>
      <dc:date>2015-07-08T01:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk PHP SDK Examples not running due to Login Error: failed to open stream: operation failed</title>
      <link>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109413#M3503</link>
      <description>&lt;P&gt;would PHP 5.5.24 work with the setup above?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 01:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109413#M3503</guid>
      <dc:creator>splunknewby</dc:creator>
      <dc:date>2015-07-08T01:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk PHP SDK Examples not running due to Login Error: failed to open stream: operation failed</title>
      <link>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109414#M3504</link>
      <description>&lt;P&gt;PHP 5.5 should work just fine&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 01:14:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109414#M3504</guid>
      <dc:creator>smohamed_splunk</dc:creator>
      <dc:date>2015-07-08T01:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk PHP SDK Examples not running due to Login Error: failed to open stream: operation failed</title>
      <link>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109415#M3505</link>
      <description>&lt;P&gt;It seems strange that you're attempting to connect to port 8000 with the API. By default the Splunk API uses port 8089 (also referred to as the management port). Port 8000 is by default the web interface port (and API clients like the PHP client, Ruby, and Java client need to use the API port and not the web interface port). &lt;/P&gt;

&lt;P&gt;Did you &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Admin/Changedefaultvalues#Change_network_ports"&gt;change these ports&lt;/A&gt; in your Splunk installation or could it be that you're pointing the PHP SDK at the incorrect port?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 01:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109415#M3505</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-07-08T01:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk PHP SDK Examples not running due to Login Error: failed to open stream: operation failed</title>
      <link>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109416#M3506</link>
      <description>&lt;P&gt;I totally missed that, this is probably the issue&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 01:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109416#M3506</guid>
      <dc:creator>smohamed_splunk</dc:creator>
      <dc:date>2015-07-08T01:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk PHP SDK Examples not running due to Login Error: failed to open stream: operation failed</title>
      <link>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109417#M3507</link>
      <description>&lt;P&gt;Cheers that worked.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 02:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-PHP-SDK-Examples-not-running-due-to-Login-Error-failed-to/m-p/109417#M3507</guid>
      <dc:creator>splunknewby</dc:creator>
      <dc:date>2015-07-08T02:04:35Z</dc:date>
    </item>
  </channel>
</rss>

