How to Install ‘PhpVirtualBox’ to Manage Virtual Machines via Web Browser... - Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Tuesday, May 12, 2015

How to Install ‘PhpVirtualBox’ to Manage Virtual Machines via Web Browser...



 

 Hello Everyone,

In this tutorial,

How to Install VirtualBox and PhpVirtualBox in Ubuntu 15.04

1. updated system package database and install prerequisites such as Apache, PHP and other needed dependencies.
Step1 :-  sudo apt-get update && apt-get upgrade && apt-get autoremove
Step2 :-  sudo apt-get install apache2
Step3 :-  sudo apt-get install php5 php5-common php-soap php5-gd
Step4 :-  sudo apt-get install build-essential dkms unzip wget
Step5 :-  vi /etc/apt/sources.list
               deb http://download.virtualbox.org/virtualbox/debian raring contrib

2. Download and Add Oracle public key
Step7 :- wget www.virtualbox.org/download/oracle_vbox.asc
Step6 :- apt-key add oracle_vbox.asc

4. restart the Apache service
Step10 :- /etc/init.d/apache2 restart  
Step11 :- systemctl restart apache2.service 

5.  Point your browser to your Private IP Address or your loopback address
Step12 :-
http://ip-address
OR
http://localhost

6. Now it’s time to install VirtualBox.
Step13 :- apt-get install virtualbox-4.3

7. Download and install PhpVirtualBox.
Step14 :- wget http://sourceforge.net/projects/phpvirtualbox/files/phpvirtualbox-4.3-3.zip
Step15 :- unzip phpvirtualbox-4.3-3.zip

8. Next, move the extracted ‘phpvirtualbox-4.3-3‘ folder to the default root folder
Step16 :- mv phpvirtualbox-4.3-3     /var/www/html

9. Rename the directory ‘phpvirtualbox-4.3-3‘ to phpvb or anything
Step17 :- mv /var/www/html/phpvb/config.php-example /var/www/html/phpvb/config.php

9. Create a new user account (or add an existing user) and add it to vboxusers group and change phpvb directory ownership to avi user.
Step18 :- useradd avi
Step19 :- passwd avi
Step20 :- usermod -aG vboxusers avi
Step21 :- chown -R avi:avi /var/www/html/phpvb

10. Now open ‘config.php‘ file and add newly created user and password.
Step22 :- vi / var/www/html/phpvb/config.php

11. Now Download and install virtualbox extension
Step23 :- wget http://download.virtualbox.org/virtualbox/4.3.26/Oracle_VM_VirtualBox_Extension_Pack-4.3.26-98988.vbox-extpack

Step24 :- VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.12-93733.vbox-extpack

12. Now start Virtualbox-websrv as the user ‘avi‘ defined in config file.
Step25 :- vboxwebsrv -H 127.0.0.1

Step26 :- /etc/init.d/virtualbox start
# /etc/init.d/vboxdrv  start
# /etc/init.d/vboxweb-service start

Now point your browser to ip_where_phpvirtualbox_is_installed/phpvb or 127.0.0.1/phpvb, if it was installed on the native server.


NOTE :- For Any Clarification Please Below

Comment,
Like and
Share  us  and  help us to spread.

####--------------------------------------------------------------------------------------####
Subscribe :-   http://www.youtube.com/user/itcloudnet?sub_confirmation=1
Website    :-   http://www.cloudnetwork.in
Facebook :-   http://facebook.com/itCloudNetwork/
Twitter     :-   http://twitter.com/itcloudnet
Pinterset  :-   http://pinterset.com/itcloudnet
LinkedIn :-   http://in.linkedin.com/pub/itcloudnet
Google+   :-   https://plus.google.com/u/0/107923552480070716949/posts
Skype Id  :-   cloud.network1
E-Mail Id :-   itcloudnet@gmail.com
####----------------------------------------------------------------------------------------####                       

Thanking You
Hope U Like it........




Comment Policy We’re eager to see your comment. However, Please Keep in mind that all comments are moderated manually by our human reviewers according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and evocative conversation.