title: Virtualbox - SOAP FAULT: [SOAP-ENV:Server] phpvirtualbox unable to connect
body: <p>So im reinstalling my dev box and wanted to try the virtualbox route.</p>
  
  <p>The guides seem straight forward installing on ubuntu 14.04 headless server with phpvirtualbox but i keep getting stuck this error</p>
  
  <p>When i go to my phpvirtualbox page and try logging in i see this error</p>
  
  <pre><code>Could not connect to host (http://127.0.0.1:18083/)
  
  Exception Object
  (
      [message:protected] =&gt; Could not connect to host (http://127.0.0.1:18083/)
      [string:Exception:private] =&gt; 
      [code:protected] =&gt; 64
      [file:protected] =&gt; /var/www/html/phpvirtualbox/lib/ajax.php
      [line:protected] =&gt; 123
      [trace:Exception:private] =&gt; Array
          (
          )
  
      [previous:Exception:private] =&gt; 
  )
  </code></pre>
  
  <p>when i check lsof -i:18083 on the box i see the ports open and listening</p>
  
  <pre><code>vboxwebsr 27978 developer    9u  IPv6  50182      0t0  TCP localhost:18083 (LISTEN)
  </code></pre>
  
  <p>it also shows its running under the developer user</p>
  
  <pre><code>27982 developer  20   0  481M 11996  9516 S  0.0  0.6  0:00.00 /usr/lib/virtualbox/vboxwebsrv -b
  </code></pre>
  
  <p>my virtual box config is as followed</p>
  
  <pre><code>VBOXWEB_USER=developer
  VBOXWEB_HOST=127.0.0.1
  VBOXWEB_PORT=18083
  </code></pre>
  
  <p>my phpvirtualbox config is as followed</p>
  
  <pre><code>/* Username / Password for system user that runs VirtualBox */
  var $username = 'developer';
  var $password = '*********';
  /* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
  var $location = 'http://127.0.0.1:18083/';
  </code></pre>
  
  <p>also php runs soap</p>
  
  <pre><code>soap
  
  Soap Client =&gt; enabled
  Soap Server =&gt; enabled
  
  Directive =&gt; Local Value =&gt; Master Value
  soap.wsdl_cache =&gt; 1 =&gt; 1
  soap.wsdl_cache_dir =&gt; /tmp =&gt; /tmp
  soap.wsdl_cache_enabled =&gt; 1 =&gt; 1
  soap.wsdl_cache_limit =&gt; 5 =&gt; 5
  soap.wsdl_cache_ttl =&gt; 86400 =&gt; 86400
  </code></pre>
  
  <p>To me all them configs match up as described in the virtualbox install process of making sure you run virtualbox under a specific user and specify that user in the config, the ports open and listening yet the phpvirtualbox interface can't connect, im fully able to manage and access virtualbox from the command line.</p>
  
  <p>If someone could help me understand where im going wrong that would be great.</p>