Virtualbox - SOAP FAULT: [SOAP-ENV:Server] phpvirtualbox unable to connect

So im reinstalling my dev box and wanted to try the virtualbox route.

The guides seem straight forward installing on ubuntu 14.04 headless server with phpvirtualbox but i keep getting stuck this error

When i go to my phpvirtualbox page and try logging in i see this error

Could not connect to host (

Exception Object
    [message:protected] => Could not connect to host (
    [string:Exception:private] => 
    [code:protected] => 64
    [file:protected] => /var/www/html/phpvirtualbox/lib/ajax.php
    [line:protected] => 123
    [trace:Exception:private] => Array

    [previous:Exception:private] => 

when i check lsof -i:18083 on the box i see the ports open and listening

vboxwebsr 27978 developer    9u  IPv6  50182      0t0  TCP localhost:18083 (LISTEN)

it also shows its running under the developer user

27982 developer  20   0  481M 11996  9516 S  0.0  0.6  0:00.00 /usr/lib/virtualbox/vboxwebsrv -b

my virtual box config is as followed


my phpvirtualbox config is as followed

/* Username / Password for system user that runs VirtualBox */
var $username = 'developer';
var $password = '*********';
/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
var $location = '';

also php runs soap


Soap Client => enabled
Soap Server => enabled

Directive => Local Value => Master Value
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400

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.

If someone could help me understand where im going wrong that would be great.

Check to see if SELinux is blocking.

I had the same error and it was SELinux keeping phpVirtual box from connecting to the VBox Web service.

phpVirtualBox / Forums / Help: "unable to connect" to phpvirtualbox , Now this "SQPmp #### SOAP FAULT: [SOAP-ENV:Server]" seems to be my issue too. The thing is that when I open the /etc/default/virtualbox file  What version of virtualbox and phpvirtualbox? 6.0-0 , virtualbox-6.0 6.0.14-133895Debianstretch What version of PHP and what webserver? lighttpd 1.4.54 and php7.0

in config.php change the location var $location = ''; to var $location = 'http://localhost:18083/';

I don't know why, maybe something wrong in ubuntu.

Virtualbox, Virtualbox - SOAP FAULT: [SOAP-ENV:Server] phpvirtualbox unable to connect - php. Now when I refresh the phpVirtualBox page, it tries to connect but the vboxwebsrv crashes. This is the output of vboxwebsrv, everything after the line "Socket connection successful" happens when i refresh phpVirtualBox. Code: Select all Expand view Collapse view?sh-3.2$ vboxwebsrv Oracle VM VirtualBox web service version 3.2.12

If you are running selinux, this step my be necessary:

semanage port -a -t http_port_t -p tcp 18083

php - Virtualbox, php - Virtualbox - SOAP FAULT: [SOAP-ENV:Server] phpvirtualbox unable to could not connect host ( exception object  Could not connect to host. This indicates that phpVirtualBox could not connect to the vboxwebsrv server. Either the location setting in config.php is wrong, vboxwebsrv is not running on the VirtualBox host, or SELinux is blocking access to vboxwebsrv.

[SOLVED] virtualbox web interface how to get it working? [Archive , This XML file does not appear to have any style information You can find some better instructions over on the phpvirtualbox page [message:protected] => Error logging in or connecting to vboxwebsrv. 2011-03-29 18:18:09 [ P ] #### SOAP FAULT: Address already in use [SOAP-ENV:Server] how can i  The most common cause is that it is set to the location of phpVirtualBox rather than the SOAP URL of vboxwebsrv. There are 2 locations involved. One is the URL that phpVirtualBox is accessible through, and the other is the URL through which phpVirtualBox communicates with vboxwebsrv. • View topic, Now, everything works perfectly (PHPVirtualBox can connect) and I see SOAP FAULT: Cannot assign requested address [SOAP-ENV:Server]. 1 Preliminary Note. I'm assuming that a headless VirtualBox is already installed on the local Ubuntu 16.04 server, e.g. as described in the tutorial VBoxHeadless - Running Virtual Machines with VirtualBox 5.1 on a headless Ubuntu 16.04 LTS Server.

Cannot login to vboxwebsrv · Issue #89 · phpvirtualbox , Jan 25 22:27:57 [vboxwebsrv] pam_securetty(login:auth): cannot PHP Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] in  Cannot connect to VM with RDP client after VirtualBox upgrade. I cannot connect with an external RDP client. /* SOAP URL of vboxwebsrv (not phpVirtualBox's

  • This should be a comment (once you have enough reputation to add one) instead of an answer. Please refer to the Help Section to learn how to earn reputation and therefore be able to comment.
  • Hi @alden and welcome to Stack Overflow! Please edit your question to be grammatically correct, punctuated, and use Markdown formatting.