The vboxweb-service is required for connecting to a VBox Host from phpVirtualBox. On Debian Stretch, the service is installed and started whenever VBox is started (i.e. boot or after an upgrade) however it immediately exits if its configuration file is not present.
The configuration file is not created by default. You need to create it:
At a minimum, the file must contain two lines:
Or if your phpVirtualBox web server and vboxwebsrv are NOT on the same host:
Once the config file is created, you can start the service as root:
sudo service vboxweb-service restart
Verify the service is actively running:
sudo service vboxweb-service status
Additional config options:
|The user as which vboxwebsrv will run.
|The host to bind to (localhost).
|The port to bind to (18083).
|Session timeout in seconds; 0 = disable timeouts (300).
|Frequency of timeout checks in seconds (5).
|Maximum number of worker threads to run in parallel (100).
|Maximum number of requests before a socket will be closed (100).
|Name of file to write log to (no file).
|The location of the vboxwebsrv binary (/usr/lib/virtualbox).
For additional information, see the phpVirtualBox Github site