Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-27-2015, 10:47 AM   #1
Registered: Aug 2012
Posts: 713

Rep: Reputation: Disabled
phpVirtualBox cannot connect to

I am using phpVirtualBox, and everything is working perfectly. Then something changes, and I get the following error:
Could not connect to host (
I reboot the physical machine, or execute /etc/init.d/vboxweb-service restart, and then everything works for a while.

According to, there are three reasons why this will happen.
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. If you have SELinux enabled
As shown below, it is not reason 2 or 3.

[root@devserver ~]# service vboxweb-service status
Checking for VBox Web Service ...running
[root@devserver ~]# service vboxdrv status
VirtualBox kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) are loaded.
[root@devserver ~]# service vboxautostart-service status
Usage: /etc/init.d/vboxautostart-service {start|stop}
[root@devserver ~]# service  vboxballoonctrl-service status
Checking for VBox watchdog service ...not running
[root@devserver ~]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          permissive
Policy version:                 24
Policy from config file:        targeted
[root@devserver ~]#
Thus it must be that the location setting in config.php is wrong. config.php has the following default settings, and I left them as is.

/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
var $location = '';
// Host / ip to use for console connections
#var $consoleHost = '';
According to, "If VirtualBox and phpVirtualBox are on the same physical host, you may leave the $location setting alone". VirtualBox and phpVirtualBox are definitely on the same physical machine.

Please provide recommendations.

Last edited by NotionCommotion; 05-29-2015 at 01:20 AM.
Old 05-29-2015, 03:06 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 137Reputation: 137
Take a look at the system logs like

Maybe it will provide you with a hint. Another idea would be to test it without SELinux.

Last edited by j-ray; 05-29-2015 at 03:07 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
connect to[]: Connection refused (port 10024) adamos22 Linux - Newbie 2 07-31-2013 01:40 PM
Could not connect to host - connection refused adrian2009 Slackware 1 12-07-2010 07:53 AM
apache2 won't connect to localhost or anw Linux - Software 17 03-18-2009 06:03 PM
Cant connect to internett, ip: ThaHabbis Linux - Networking 4 04-22-2007 11:52 AM
Can't Connect To overbored Linux - Networking 4 04-19-2004 04:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration