Changes

From Amahi Wiki
Jump to: navigation, search
51 bytes added ,  01:00, 26 January 2011
* Navigate to the Amahi '''''Applications tab''''', create a web app called '''phpvb'''.
* Become '''root''' user:
{{Code|su -}}
* Install dependency:
{{Code|yum -y install php-soap}}
* Download and extract the source file:
{{Code|cd /var/hda/web-apps/phpvb wget <nowiki>http://phpvirtualbox.googlecode.com/files/phpvirtualbox-4-0.zip</nowiki> 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:
{{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):
{{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
esac
Set permissions:
{{Code|chmod 755 /etc/init.d/vboxwebsrv}}
To use the service, do the following as '''root''' user (option: start, stop, restart, force-reload, status):
{{Code|service vboxwebsrv option}}
* That's it. You should now be able to access VirtualBox from your browser at <nowiki>http://phpvb</nowiki>. 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 [http://code.google.com/p/phpvirtualbox/wiki/Installation phpVirtualBox Installation] for additional guidance.
12,424

edits