pangzhongliang / phpvirtualbox

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

New install first worked, then PHP error #655

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
New installation Ubuntu Server 12.04, set up for headless operation, and with 
nginx and php-fpm (not LAMP)
Virtualbox 4.2.6, phpvirtualbox 4.2

Everything worked fine after initial install and config, and I was able to set 
up my first VM using phpvirtualbox in browser over LAN. But when I tried to 
start console in phpvirtualbox, for install of OS into first VM, I got error 
#2048. Attempting to fix this, in config.php I tried uncommenting var 
$consoleHost and put in IP of vbox host. At this point i refreshed browser but 
could no longer access phpvirtualbox.

What steps will reproduce the problem?
1. In Safari: 192.168.1.1/phpvirtualbox/  error: "An unknown PHP error 
occurred...."
2. In Firefox: 192.168.1.1/phpvirtualbox/  error: "PHP is not being parsed...."
3. In both browsers, 192.168.1.1/phpvirtualbox/config.php  gives  blank

I have re-checked main configs several times, both 
/user/share/nginx/www/phpvirtualbox/config.php and 
/etc/nginx/sites-enabled/default against recommendations in several very recent 
howtos, and can't find any obvious mistake. Vbowebsrv is confirmed running. 
Have tried undoing my edit of $consoleHost, again, no good. Can't recall doing 
anything else on host between initially getting it working and having it break 
while setting up first VM, though I must have affected something somehow.

The host nginx webserver's sole function is to host the phpvirtualbox page; 
nothing to the outside. The main relevant lines in 
etc/nginx/sites-enabled/default are as follows:

[.....]

location ~ /\.php$ {
   try_files $uri=404;
   fastcgi_split_path_info ^(.+\php)(/.+)$;
   fastcgi_pass 127.0.0.1:9000
   fastcgi_index index.php
   Include fastcgi_params;
}

[...]

Netstat shows the appropriate services listening on 127.0.0.1:18083 and 
...:9000. 

Any suggestion what else I can check?

Original issue reported on code.google.com by mh858...@gmail.com on 23 Dec 2012 at 4:07

GoogleCodeExporter commented 8 years ago
Ok, fixed. This was a nginx problem. Removing fastcgi_index line was quick fix. 
(Apparently no index.php was installed). Since my web server does nothing but 
serve phpvirtualbox, I can live with this, though it is a makeshift fix, to be 
sure.

Original comment by mh858...@gmail.com on 25 Dec 2012 at 5:42

GoogleCodeExporter commented 8 years ago

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