LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
LinkBack Search this Thread
Old 08-17-2012, 09:38 AM   #1
mcc28
LQ Newbie
 
Registered: May 2006
Posts: 13

Rep: Reputation: 0
Unhappy 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
 
Old 08-17-2012, 10:23 AM   #2
abrinister
Member
 
Registered: Dec 2010
Location: /home
Distribution: RL: Arch x64 VM: Debian
Posts: 460

Rep: Reputation: 38
Have you added yourself to the vbox group?

Alex Brinister
 
Old 08-17-2012, 10:31 AM   #3
mcc28
LQ Newbie
 
Registered: May 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by abrinister View Post
Have you added yourself to the vbox group?

Alex Brinister
Yep -
Code:
 groups
mark adm cdrom sudo dip plugdev sambashare lpadmin vboxusers
 
Old 08-17-2012, 10:35 AM   #4
abrinister
Member
 
Registered: Dec 2010
Location: /home
Distribution: RL: Arch x64 VM: Debian
Posts: 460

Rep: Reputation: 38
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
 
Old 08-17-2012, 10:45 AM   #5
mcc28
LQ Newbie
 
Registered: May 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by abrinister View Post
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!
 
Old 08-17-2012, 01:52 PM   #6
mcc28
LQ Newbie
 
Registered: May 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Hi,

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


Reply

Tags
ubuntu 12.04, virtualbox


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Managing A Headless VirtualBox Installation With phpvirtualbox (Fedora 17) LXer Syndicated Linux News 0 08-16-2012 09:20 AM
LXer: Managing A Headless VirtualBox Installation With phpvirtualbox (OpenSUSE 12.1) LXer Syndicated Linux News 0 07-29-2012 06:10 AM
LXer: Managing A Headless VirtualBox Installation With phpvirtualbox (CentOS 6.2) LXer Syndicated Linux News 0 07-10-2012 07:02 PM
LXer: Managing A Headless VirtualBox Installation With phpvirtualbox (Ubuntu 12.04) LXer Syndicated Linux News 0 07-05-2012 08:40 PM
problem logging into phpvirtualbox kaplan71 Linux - Software 0 05-27-2011 03:59 PM


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

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