LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   phpvirtualbox tutorial - problem (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/phpvirtualbox-tutorial-problem-4175422618/)

mcc28 08-17-2012 09:38 AM

phpvirtualbox tutorial - problem
 
Hi,

I have followed the tutorial at http://www.howtoforge.com/managing-a...x-ubuntu-12.04 but have an error when I try to login at myserver/phpvirtualbox/

I use the default username/password (admin/admin) but get the following error message:

Code:

Exception Object
(
    [message:protected] => Error logging in to vboxwebsrv.
    [string:Exception:private] =>
    [code:protected] => 64
    [file:protected] => /var/www/phpvirtualbox/lib/vboxconnector.php
    [line:protected] => 188
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/phpvirtualbox/lib/auth/Builtin.php
                    [line] => 45
                    [function] => connect
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [1] => Array
                (
                    [file] => /var/www/phpvirtualbox/lib/ajax.php
                    [line] => 119
                    [function] => login
                    [class] => phpvbAuthBuiltin
                    [type] => ->
                    [args] => Array
                        (
                            [0] => admin
                            [1] => admin
                        )

                )

        )

    [previous:Exception:private] =>
)

The only information in the logfile is

Code:

VirtualBox web service 4.1.18 r78361 linux.amd64 (Jun 20 2012 14:50:49) release log
00:00:00.000 main    Log opened 2012-08-17T12:52:51.706645000Z
00:00:00.000 main    OS Product: Linux
00:00:00.000 main    OS Release: 3.2.0-29-generic
00:00:00.000 main    OS Version: #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012
00:00:00.000 main    OS Service Pack: #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012
00:00:00.000 main    Executable: /usr/lib/virtualbox/vboxwebsrv
00:00:00.000 main    Process ID: 3993
00:00:00.000 main    Package type: LINUX_64BITS_UBUNTU_12_04
/var/log/vboxweb.log (END)

The output of
Code:

ps aux | grep vbox
is:

Code:

vbox      3863  0.0  0.1 116336  6048 ?        S    13:50  0:00 /usr/lib/virtualbox/VBoxXPCOMIPCD
vbox      3868  0.0  0.1 463536  7940 ?        Sl  13:50  0:00 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
vbox      3997  0.0  0.1 540916  6516 ?        Sl  13:52  0:00 /usr/lib/virtualbox/vboxwebsrv --background -F /var/log/vboxweb.log
mark      5059  0.0  0.0  9384  924 pts/2    S+  15:19  0:00 grep --color=auto vbox

I have tried commenting/uncommenting the noauth in
Code:

/var/www/phpvirtualbox/config.php
but it doesn't really make any difference.

My
Code:

/etc/default/virtualbox
looks like:

Code:

VBOXWEB_USER=vbox
VBOXWEB_LOGFILE=/var/log/vboxweb.log

Can anyone help please?

thanks

Mark

abrinister 08-17-2012 10:23 AM

Have you added yourself to the vbox group?

Alex Brinister

mcc28 08-17-2012 10:31 AM

Quote:

Originally Posted by abrinister (Post 4756815)
Have you added yourself to the vbox group?

Alex Brinister

Yep -
Code:

groups
mark adm cdrom sudo dip plugdev sambashare lpadmin vboxusers


abrinister 08-17-2012 10:35 AM

You should try adding yourself to the http group(or whatever it is called on your distro). It allows you to do some server stuff regular users cannot.

Alex Brinister

mcc28 08-17-2012 10:45 AM

Quote:

Originally Posted by abrinister (Post 4756828)
You should try adding yourself to the http group(or whatever it is called on your distro). It allows you to do some server stuff regular users cannot.

Alex Brinister


I added myself to www-data group but it made no difference....booooo!:(

mcc28 08-17-2012 01:52 PM

Hi,

I solved this by logging in as user 'vbox' and issuing the command
Code:

VBoxManage setproperty websrvauthlibrary null


All times are GMT -5. The time now is 07:46 PM.