justvanbloom / phpvirtualbox

Automatically exported from code.google.com/p/phpvirtualbox
0 stars 0 forks source link

Only load Virtualbox (Hosting) #204

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install php5, apache2, phpvirtualbox
2.Config : config.php and vboxwebsrv
var $location = 'http://my_IP:18083/phpvirtualbox/';
3.Run : Only load Virtualbox(hosting) 

What is the expected output? What do you see instead?

What version of phpVirtualBox, VirtualBox, and PHP are you using? On what 
operating system?
1. Ubuntu 9.10 
2. PHP 5.2.10 
3. VirtualBox 3.2.12 
4. phpVirtualBox 0.5 beta release - build 2 

Please provide any additional information below.
If I configure with the variable $location = http://my_IP/phpvirtualbox/ , it 
has "looks like we got no XML document"  

Original issue reported on code.google.com by tuant...@gmail.com on 22 Feb 2011 at 7:12

GoogleCodeExporter commented 9 years ago
Hi,

Change $location to 

var $location = 'http://localhost:18083/';

That is the "location" that vboxwebsrv is listening on, not where phpVirtualBox 
is. Then navigate to http://your_IP/phpvirtualbox/ in your web browser.

Let me know if this solves it. You had it correct before when you were getting 
the 'Wrong Version' error.

Original comment by imooreya...@gmail.com on 22 Feb 2011 at 7:14

GoogleCodeExporter commented 9 years ago
Thank for your reply, 
I have changed to : "var $location = 'http://myIP:18083/'; " but this result 
didn't change. 
In this screen, it has only Virtualbox (Hosting). It means that it has only my 
machines (not any virtual machines that I have created). 
Best regards, 
T.Q.T

Original comment by tuant...@gmail.com on 22 Feb 2011 at 7:24

Attachments:

GoogleCodeExporter commented 9 years ago
Firstly, can I assume your other issue is resolved?

http://code.google.com/p/phpvirtualbox/issues/detail?id=203

??

Original comment by imooreya...@gmail.com on 22 Feb 2011 at 8:59

GoogleCodeExporter commented 9 years ago
This is usually an indication that the username / password entered in 
config.php is not that of the user that administers your VirtualBox virtual 
machines. 

Original comment by imooreya...@gmail.com on 23 Feb 2011 at 11:40

GoogleCodeExporter commented 9 years ago
I used Ubuntu 9.10 , in this config.php, it has my account to install and run 
VirtualBox with virtual machines. 
???

Original comment by tuant...@gmail.com on 23 Feb 2011 at 4:43

GoogleCodeExporter commented 9 years ago
Please type:

ps aux | grep vboxweb

in a console window and paste the output here.

Original comment by imooreya...@gmail.com on 23 Feb 2011 at 4:50

GoogleCodeExporter commented 9 years ago
$ps aux | grep vboxweb
admin1   12461  0.0  0.0   3044   784 pts/2    R+   17:41   0:00 grep 
--color=auto vboxweb
root     24910  0.0  0.3  26148  6628 ?        Sl   Feb22   0:13 
/usr/lib/virtualbox/vboxwebsrv -b -H [MyIP] --logfile /dev/null

Original comment by tuant...@gmail.com on 23 Feb 2011 at 4:59

GoogleCodeExporter commented 9 years ago
I have run VirtualBox from GUI, but I don't understand the problem : 
1) If I run the command line with account : admin1(not sudo) 
/usr/lib/virtualbox/vboxwebsrv -b -H [MyIP] --logfile /dev/null >/dev/null
When I access virtualbox via URL, it has error : "Error logging in or 
connecting to vboxwebsrv"  

2) If I run the command line with sudo 
sudo /usr/lib/virtualbox/vboxwebsrv -b -H [MyIP] --logfile /dev/null >/dev/null 
I access virtualbox via URL, it doesn't have any error but it has only 
VirtualBox (Hosting) 

is this the bug of Php Virtualbox ? 
Best regards,

Original comment by tuant...@gmail.com on 23 Feb 2011 at 5:26

GoogleCodeExporter commented 9 years ago
Hi,

This is not a phpVirtualBox bug. It is that VirtualBox cannot perform 
authentication on your system as non-root users.

Run this in a console as admin1:

VBoxManage setproperty websrvauthlibrary null

Run vboxwebsrv as admin1 (not root, do not use sudo).

Let me know how it goes.

Original comment by imooreya...@gmail.com on 23 Feb 2011 at 5:40

GoogleCodeExporter commented 9 years ago
That's good. It shows the Virtual Machine. 
The problem is solved

Original comment by tuant...@gmail.com on 23 Feb 2011 at 6:44

GoogleCodeExporter commented 9 years ago

Original comment by imooreya...@gmail.com on 23 Feb 2011 at 8:25