VirtualBox Web安裝教學
- 安裝apache2與php
- sudo apt-get install apache2 apache2-mpm-prefork
- sudo apt-get install php5 libapache2-mod-php5 php5-cli php5-dev php5-gd php5-imagick php5-mcrypt php5-xmlrpc
- 設定WebService Config,http://code.google.com/p/phpvirtualbox/wiki/vboxwebServiceConfigLinux
- vim /etc/default/virtualbox,加入VBOXWEB_USER=vbox; VBOXWEB_HOST=192.168.12.7
- 在安裝Virtual Box時,最好給它自己的使用者。再將這個使用者填入VBOXWEB_USER中。
- Start service,/etc/init.d/vboxweb-service start
- download phpvirtualbox
- unzip且移動到/var/www/vbox中
- 修改config
- vim /var/www/vbox/config.php-example
- 將username改為vbox, password為vbox,username對應VBOXWEB_USER。帳號密碼是對應安裝Virtual Box的。
- 執行vboxwebsrv(可以加入start-session中),並登入web,http://192.168.12.7/vbox