How To Install PhpVirtualbox on Ubuntu 15.04

r00t November 17, 2015

php-logo

In this tutorial we will show you how to install and configuration of phpVirtualbox on your Ubuntu 15.04 server. For those of you who didn’t know, phpVirtualBox is an open source, web-based client written using PHP. It can be used to manage and administer Oracle VirtualBox headless instances.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation phpVirtualbox on Ubuntu 15.04 server.

Install PhpVirtualbox on Ubuntu 15.04

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

Step 2. Install LAMP server.

A Ubuntu 15.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install required PHP modules:

Step 3. Install phpVirtualbox.

Download the latest stable version of phpVirtualbox, At the moment of writing this article it is version 5.0-3:

We will need to change some folders permissions:

Step 4. Configure phpVirtualBox.

We need to modify the phpVirtualBox configuration to make the successful communication with VirtualBox installation, first we need to rename sample config file (config.php-example to config.php):

Change the user name and password to that user there is running Virtualbox:

VirtualBox setup creates init script vboxweb-service when it is installed, this is used to start and stop the vboxwebserv, before starting the service, we need to have /etc/default/virtualbox file because it contains settings for the service . We need to create it manually if it does not exists:

You should add this line in the file:

Now you should start the vboxweb-service, and make it start automatically on boot:

Step 5. Accessing phpVirtualbox.

phpVirtualbox will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/phpvirtualbox or http://server-ip/phpvirtualbox and complete the required the steps to finish the installation. Where the default phpVirtualBox’s username name and password is admin/admin. If you are using a firewall, please open port 80 to enable access to the control panel.

phpVirtualbox-login-page

Congratulation’s! You have successfully installed phpVirtualbox. Thanks for using this tutorial for installing phpVirtualbox in Ubuntu 15.04 system. For additional help or useful information, we recommend you to check the official phpVirtualbox web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!

Save

Share on Google+0Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon0Share on Reddit0Pin on Pinterest2
The Tags:

Leave a Comment