PhpVirtualBox
From Amahi Wiki
phpVirtualBox has been packaged for Amahi and is currently in ALPHA testing.
How to Install Manually:
- Ensure Advanced Settings is be enabled on your HDA. This can be done via the Settings tab in the Amahi Dashboard.
- Navigate to the Amahi Applications tab, create a web app called phpvb.
- Become root user:
bash code |
---|
su -
|
- Install dependency:
bash code |
---|
yum -y install php-soap
|
- Download and extract the source file:
bash code |
---|
cd /var/hda/web-apps/phpvb wget http://phpvirtualbox.googlecode.com/files/phpvirtualbox-4-0.zip unzip phpvirtualbox-4-0.zip mv phpvirtualbox-4-0/* html chown -R apache:users html
|
- Edit /var/hda/web-apps/phpvb/html/config.php and change the values below to your user name and password (must be the same user name as added to the vboxusers group during VirtualBox install):
var $username = 'ian'; var $password = 'pass';
- Start Web Service:
bash code |
---|
/usr/bin/vboxwebsrv -b --logfile /dev/null >/dev/null
|
- Enable Web Service start on boot:
Exit root user and edit crontab for your user (whoami will display the current user name and must match the one in the previous step):
bash code |
---|
whoami crontab -e
|
and add the following line. (to save, enter : followed by wq):
@reboot /usr/bin/vboxwebsrv -b --logfile /dev/null >/dev/null
- Create Web Service daemon (this will allow start/stop for updating VirutalBox versions):
As root user, create the file /etc/init.d/vboxwebsrv and add the following (ensure you replace username on line 6 with the same user name as added to the vboxusers group during VirtualBox install):
Text |
---|
grep vboxwebsrv
|
Set permissions:
bash code |
---|
chmod 755 /etc/init.d/vboxwebsrv
|
To use the service, do the following as root user (option: start, stop, restart, force-reload, status):
bash code |
---|
service vboxwebsrv option
|
- That's it. You should now be able to access VirtualBox from your browser at http://phpvb. It will restart automatically on reboot as well. Be aware moving the mouse pointer in this app is quirky and often difficult to navigate.
- Refer to phpVirtualBox Installation for additional guidance.
NOTE: See Amahi on VirtualBox for detailed guidance on installing Amahi on a virtual machine (VM).