You are not logged in.

#1 2011-12-16 15:10:51

clovenhoof
Member
From: Bulgaria
Registered: 2010-09-16
Posts: 82

[Solved] PhpVirtualBox doesn't work

I use VirtualBox OSE edition and it works standalone, but if I use PhpVirtualBox,  nothing shows in the browser:

upload0l.th.jpg

My LAMP works fine, also, because I host several websites with it.

I followed Wiki, to configure VirtualBox OSE and PhpVirtualBox.

Wiki quote:

If you are using the OSE edition, do something like this on your virtualbox running machine.
vboxwebsrv -b --logfile /dev/null --pidfile /var/run/vbox/vboxwebsrv.pid --host 127.0.0.1
If you are using the UEL edition, there is already a vboxweb script in /etc/rc.d, what you need is adjusting the settings in /etc/conf.d/vboxweb and then start it like the other daemon.
For OSE users, you can also use these scripts form UEL edition package, just put the vboxweb.conf into /etc/conf.d and the vboxweb.rc into /etc/rc.d, you can get them from the virtualbox_bin AUR page.
In the /etc/conf.d/vboxweb, you should take care of VBOXWEB_USER variable which should be set to the system username running the the vboxwebsrv command.
Check that this user is in group vboxusers.

If I run:

vboxwebsrv -b --logfile /dev/null --pidfile /var/run/vbox/vboxwebsrv.pid --host 127.0.0.1

I got:

...
 vboxwebsrv: error: failed to daemonize, rc=VERR_FILE_NOT_FOUND. exiting.

But it is OK to run not as daemon

vboxwebsrv --logfile /dev/null --pidfile /var/run/vbox/vboxwebsrv.pid --host 127.0.0.1

.. and the browser shows nothing (see upper screenshot)

Any help?

PP: I'm also confused where to put configurations like "VBOXWEB_USER". Currently I put it in /etc/vbox/vbox.cfg. There is no such file as /etc/conf.d/vboxweb

Last edited by clovenhoof (2011-12-16 20:43:06)

Offline

#2 2011-12-16 15:12:32

clovenhoof
Member
From: Bulgaria
Registered: 2010-09-16
Posts: 82

Re: [Solved] PhpVirtualBox doesn't work

If I use internet explorer I got errors on the page:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; EasyBits GO v1.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Fri, 16 Dec 2011 14:41:27 UTC


Message: Expected ';'
Line: 2
Char: 32
Code: 0
URI: http://10.8.0.1/phpvirtualbox/js/language.php


Message: Expected ';'
Line: 2
Char: 32
Code: 0
URI: http://10.8.0.1/phpvirtualbox/js/phptest.php


Message: Object expected
Line: 466
Char: 2
Code: 0
URI: http://10.8.0.1/phpvirtualbox/js/utils.js

Offline

#3 2011-12-16 20:42:40

clovenhoof
Member
From: Bulgaria
Registered: 2010-09-16
Posts: 82

Re: [Solved] PhpVirtualBox doesn't work

This solves the problem.

Offline

Board footer

Powered by FluxBB