Changes

From Amahi Wiki
Jump to: navigation, search
83 bytes removed ,  02:30, 23 June 2020
no edit summary
* 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.1-3.zip</nowiki> unzip phpvirtualbox-4.1-3.zip mv phpvirtualbox-4.1-3/* html chown -R apache:users html}}
* Copy the example config file.
{{Code| cd /var/hda/web-apps/phpvb/html cp config.php-example config.php}}
* Edit the copied '''''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):
{{Text|Text= var $username <nowiki>=</nowiki> 'vbox'; var $password <nowiki>=</nowiki> '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'''):
{{Text|Text= @reboot /usr/bin/vboxwebsrv -b --logfile /dev/null >/dev/null}}
* Create Web Service daemon (this will allow start/stop for updating VirutalBox versions):
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