Skip to content

Instantly share code, notes, and snippets.

@bryanwillis
Forked from dominicsayers/virtualbox.md
Created August 31, 2013 04:42
Show Gist options
  • Select an option

  • Save bryanwillis/6396253 to your computer and use it in GitHub Desktop.

Select an option

Save bryanwillis/6396253 to your computer and use it in GitHub Desktop.

First install Virtualbox

  1. sudo nano /etc/apt/sources.list.d/virtualbox.list
  2. Add deb http://download.virtualbox.org/virtualbox/debian raring contrib non-free
  3. wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
  4. sudo apt-get update
  5. sudo apt-get install dkms unzip
  6. sudo apt-get install virtualbox-4.2 --no-install-recommends
  7. wget http://download.virtualbox.org/virtualbox/4.2.12/Oracle_VM_VirtualBox_Extension_Pack-4.2.12.vbox-extpack
  8. sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.2.12.vbox-extpack

Now to install phpVirtualbox

  1. sudo apt-get install apache2 php5 libapache2-mod-php5
  2. sudo service apache2 restart
  3. sudo adduser --ingroup vboxusers vbox and enter a password
  4. wget 'http://sourceforge.net/projects/phpvirtualbox/files/latest/download' -O phpvirtualbox-latest.zip
  5. sudo unzip phpvirtualbox-latest.zip -d /var/www
  6. cd /var/www
  7. sudo mv phpvirtualbox-latest phpvirtualbox
  8. cd phpvirtualbox
  9. sudo mv config.php-example config.php
  10. sudo nano config.php and make $username and $password match the user you created earlier
  11. Also add this line to disable phpVirtualbox's authentication var $noAuth = true;
  12. sudo nano /etc/default/virtualbox
  13. Add VBOXWEB_USER=vbox
  14. sudo /etc/init.d/vboxweb-service start
  15. In a browser, go to http://your-server/phpvirtualbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment