Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

unable to access phpvirtualbox from browser

$
0
0
Hi all,

A complete newbie here (although I may have logged on here several years ago when I first had a look at ubuntu), following the instructions to create a headless home server from this site linux home server guide

I'm on this page and at the bottom, the text prompts me to point to the hostname/phpvirtualbox/. When I do this I get a 404 Not Found

The requested URL /phpvirtualbox/ was not found on this server.

Apache/2.4.7 (Ubuntu) Server at server-main Port 80


I have the following installed:

Ubuntu 14.04.1 LTS
virtualbox-4.3.20
phpvirtualbox-4.2.6

According to SourceForge Common Errors & Issues page not being able to connect to the host is due to 3 possible issues:
1) Either the location setting in config.php is wrong,
2) vboxwebsrv is not running on the VirtualBox host,
3) SELinux is blocking access to vboxwebsrv

I don't have SELinux so it's between 1 and 2. My config.php file (from following the instruction; so in this location /var/www/phpvirtualbox) contains:

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

/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
var $location = 'http://127.0.0.1:18083/';


Note: I've only ever changed the values for the username and password in this file.

The user is the same I set up in the /etc/default/virtualbox file:

VBOXWEB_USER=vboxuser

According to the errors and issues page from sourceforge page above, the location is set correctly, they also mention here in their basic configuration section that "If VirtualBox and phpVirtualBox are on the same physical host, you may leave the $location setting alone."

2) vboxwebsrv is not running on the VirtualBox host. It is, I can see the apache2 "it works" page when I go to the hostname (Server-Main) from a browser, also from the command line:

anthony@Server-Main:/home/vboxuser$ sudo /etc/init.d/vboxweb-service status
Checking for VBox Web Service ...running
anthony@Server-Main:/home/vboxuser$ php5 -v
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
anthony@Server-Main:/home/vboxuser$ VBoxManage list extpacks
Extension Packs: 1
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 4.3.20
Revision: 96996
Edition:
Description: USB 2.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM with E1000 support.
VRDE Module: VBoxVRDP
Usable: true
Why unusable:
anthony@Server-Main:/home/vboxuser$


Please can someone help to suggest what else I check. The only difference I've made from following the instructions in the linux home server pages were to install the newer version of the packages specified.

Also please excuse the crummy formatting, it'll get better as I post more!

Thanks,

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>