Comments on Managing A Headless VirtualBox Installation With phpvirtualbox On nginx (Ubuntu 12.04)

Managing A Headless VirtualBox Installation With phpvirtualbox On nginx (Ubuntu 12.04) phpvirtualbox is a web-based VirtualBox front-end written in PHP that allows you to access and control remote VirtualBox instances. It tries to resemble the VirtualBox GUI as much as possible to make work with it as easy as possible. It is a nice replacement for the VirtualBox GUI if you run VirtualBox in headless servers. This tutorial explains how to install phpvirtualbox with nginx on an Ubuntu 12.04 server to manage a locally installed, headless VirtualBox.

5 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Waters

Help .. I can't get the above steps to work on Ubuntu 12.10 .... always get a host can't connect error ...

 

Ideas?

By: Anonymous

If you're only getting sort of a blank grey page with a white stripe at the bottom and two thinner white stripes at the top and errors in nginx error log like
"[error] #0: *# connect() failed (111: Connection refused)"
this might be your issue:
Debian's default install of php5-fpm and nginx.
/etc/nginx/sites-available/default
fastcgi_pass   unix:/var/run/php5-fpm.sock;
NOT
fastcgi_pass   127.0.0.1:9000;
Head banging on wall occurred.

By: the beaver

That just made my day. thx for the hint 

By: Jan Faix

I was getting grey page with few frames and error "Resource interpreted as Script but transferred with MIME type text/html" on a Ubuntu 12.04 server.

virtualbox-4.3.18
nginx v1.6.2
php5-fpm v5.3.10
phpvirtualbox v4.3-1

The problem was, my Nginx virtual server configuration file was missing following line:

fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;

/etc/nginx/sites-enabled/virtualbox.conf

--- cut ---
    location ~ \.php$ {
            try_files $uri =404;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include fastcgi_params;
    }
--- cut ---

I found this parameter on page: http://voidandany.free.fr/index.php/installer-virtualbox-sur-un-serveur-headless-sans-interface-graphique/

By: Iman

Vielen Danke Herr Timme! Besten Grüße aus unserem Lüneburg :)

Iman