HolyDiablo / phpvirtualbox

Automatically exported from code.google.com/p/phpvirtualbox
Other
0 stars 0 forks source link

cannot access the phpvirtualbox login screen #686

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?
1.type in the same pc where phpvirtualbox resides the hostname or the FQDN 
2.append /phpvirtualbox (ie the folder which phpvirtualbox is extracted)

What is the expected output? What do you see instead?
I would expect to see the login screen. Instead I get the error "PHP is not 
being parsed by your web server. Make sure that PHP is installed.
Unable to continue.
Note: you may also see this message if you have opened index.html in your web 
browser directly rather than accessing it through your web server."

What version of phpVirtualBox, VirtualBox, and PHP are you using? On what
operating system?
php v5.4.7
virtualbox 4.1.14r77440
phpvirtualbox 4.1.11
slackware 64bit v14.0 - kernel is 3.2.29

Please provide any additional information below.

Running a browser from the same pc where httpd (php enabled),virtualbox & 
phpvirtualbox reside gives the above error if I type the "hostname", or the 
FQDN in the browser address bar.

If, on the other hand, I type any of the:
-127.0.0.1/phpvirtualbox
-"localhost"/phpvirtualbox
-<intranet ip address of my server>/phpvirtualbox
I WILL get the login screen as expected!

Now, if I go to another pc in my intranet and try to access this phpvirtualbox 
- i'll have to use the "hostname" or the intranet's FQDN. Then I only see a 
blank screen - no msg similar to the one appearing when i connect from the same 
pc.
If i use the <ip add of the server> from the other pc, i will get the 
connection again!

This seems most odd. - it works when some names are used and not when others 
are used. and the error message appears only on some situations so It can't be 
that http server is not php enabled.

In any case i tried to access a small php echo script which I placed in the 
phpvirtualbox folder (root:root owner&group)and it worked.
# ps aux | grep vbox
vbox     22161  0.0  0.0 461284  7456 ?        Sl   Apr21   0:01 
/opt/VirtualBox/vboxwebsrv --background

vboxwebsrv is running and /etc/default/virtualbox contains only VBOX_USER=vbox 
entry.

the config.php is unaltered and contains (in the beginning)

class phpVBoxConfig {

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

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

/* Default language. See languages folder for more language options.
 * Can also be changed in File -> Preferences -> Language in
 * phpVirtualBox.
 */
var $language = 'en';

Nothing has been altered down below.
Also I have disabled authentication for my vbox user using the command
"VBoxManage setproperty websrvauthlibrary null"

Original issue reported on code.google.com by athanasi...@gmail.com on 21 Apr 2013 at 10:07

GoogleCodeExporter commented 8 years ago
This sounds like an apache / virtualhost misconfiguration. Please open a new 
issue if you are still seeing this problem.

Original comment by imooreya...@gmail.com on 11 Jul 2013 at 4:35

GoogleCodeExporter commented 8 years ago
It appears it was related to the local browser's cache.
After repeated refreshing of the browser the page was finally loaded properly.

Original comment by athanasi...@gmail.com on 11 Jul 2013 at 8:34