lost and found ( for me ? )

install phpvirtualbox on Ubuntu 14.04


$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.4 LTS
Release:        14.04
Codename:       trusty

$ virtualbox --help
Oracle VM VirtualBox Manager 5.0.16

create a user “vbox” and configure password for that user.
$ sudo useradd -m vbox -G vboxusers

$ sudo passwd vbox
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

edit /etc/default/virtualbox file
There were the file “virtualbox” under /etc/default directory, so I created the file.
$ sudo vi /etc/default/virtualbox

$ cat /etc/default/virtualbox
VBOXWEB_USER=vbox

start vbox-webservice
$ sudo /etc/init.d/vboxweb-service start
Starting VirtualBox web service ...done.

$ sudo lsof -ni:18083
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
vboxwebsr 24354 vbox    9u  IPv4 105577      0t0  TCP 127.0.0.1:18083 (LISTEN)

install apache
$ sudo apt-get install apache2-mpm-prefork apache2-utils apache2.2-bin apache2 apache2-doc apache2-suexec
libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libapr1 php5-common php5-mysql php-pear w
get

start apache2
$ sudo /etc/init.d/apache2 start
* Starting web server apache2                                                                                              *

$ apache2ctl status
Can't create config directory (/.w3m)!Apache Server Status for localhost (via ::1)

Server Version: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14
Server MPM: prefork
Server Built: Jan 14 2016 17:45:23

install phpvirtualbox
$ unzip phpvirtualbox-5.0-5.zip

$ sudo mkdir /var/www/html/phpvirtualbox

$ sudo mv phpvirtualbox-5.0-5/* /var/www/html/phpvirtualbox/

$ cd /var/www/html/phpvirtualbox/
$ sudo cp config.php-example config.php

edit config.php and change password
class phpVBoxConfig {

/* Username / Password for system user that runs VirtualBox */
var $username = 'vbox';
var $password = 'pass';

access to http://<IP address/phpvirtualbox
error..

Googling thie error, we might fix this by adding the following two options in /etc/php5/apache2/php.ini
$ tail -2 /etc/php5/apache2/php.ini
extension=json.so
extension=soap.so

restart apache2 to reflect that.
$ sudo /etc/init.d/apache2 restart

username : admin
password : admin


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.