title: How to configure apache with socket transport "wss"
body: <p>I try to connect from php to server by using websockets. This is my code</p>
  <pre><code>$opts = [
      'ssl' =&gt; [
          'cafile' =&gt; 'core/certs/root.pem',
          'local_cert' =&gt; 'core/certs/client.pem',
          'local_pk' =&gt; 'core/certs/client_key.pem'
      ]
  ];
  $content = stream_context_create($opts, $opts);
  
  $socket = stream_socket_server(
      &quot;wss://$host&quot;,
      $errno,
      $errstr,
      STREAM_SERVER_BIND|STREAM_SERVER_LISTEN,
      $content
  );
  </code></pre>
  <p>After running script I got error:</p>
  <blockquote>
  <p>Unable to find the socket transport &quot;wss&quot; - did you forget to enable
  it when you configured PHP? (0)</p>
  </blockquote>
  <p>How to enable socket transport &quot;wss&quot; in apache?</p>