I'm trying to get an idea why phpVirtualBox logins always fail after upgrading to Ubuntu Server 18.04, VirtualBox 5.2.12r122591, Extension Pack 5.2.12, and phpVirtualBox 5.0.5.
VirtualBox seems to be running as expected on the server, but any phpVirtualBox logins are met with dialog "An unknown PHP error occurred. This is most likely a syntax error…".
I've worked with a couple of pristine config.php-example files changing only my username and password to that of the server host to create a config.php.
What am I missing? Is this truly a config.php problem with syntax or is it something else? Nothing seems amiss in vboxwebsrv.log or VBoxSVC.log
vboxautostart-service.service loaded active exited
vboxballoonctrl-service.service loaded active exited
vboxdrv.service loaded active exited
vboxweb-service.service loaded active running
vgauth.service loaded inactive dead
virtualbox.service loaded active exited
$ lsof -i -n | grep vboxweb
(returns…)
vboxwebsr 1515 dlfuller 9u IPv4 25701 0t0 TCP 127.0.0.1:18083 (LISTEN)
Thanks for any suggestions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I posted the same at Github, but the satisfactory end result might also be helpful here.
These are my steps in getting phpVirtualBox 5.2 working on PHP 7.2 and Ubuntu Server 18.04 in case they might help others.
First, I followed steps from an excellent how-to with two notable exceptions. One is changing all 7.1 references there to 7.2. The other is getting the newer phpvirtualbox 5.2 from a different source.
I purged all old my installed php packages php, php7.0, php7.1, php7.2 and then did an autoclean.
During my apt-get update the "…public key is not available…" problem for the Ondřej Surý repository problem was resolved by entering this single-command solution:
Finally I restarted the Apache2 and PHP services, and went to http://(my local domain)/phpinfo.php and http://(my local domain)/phpvirtuablbox.php for results with everything working.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to get an idea why phpVirtualBox logins always fail after upgrading to Ubuntu Server 18.04, VirtualBox 5.2.12r122591, Extension Pack 5.2.12, and phpVirtualBox 5.0.5.
VirtualBox seems to be running as expected on the server, but any phpVirtualBox logins are met with dialog "An unknown PHP error occurred. This is most likely a syntax error…".
I've worked with a couple of pristine config.php-example files changing only my username and password to that of the server host to create a config.php.
What am I missing? Is this truly a config.php problem with syntax or is it something else? Nothing seems amiss in vboxwebsrv.log or VBoxSVC.log
Thanks for any suggestions.
Hi,
Please note that this site is not monitored by phpvirtualbox developers. Please report all issues to Github here: https://github.com/phpvirtualbox/phpvirtualbox/issues
I posted the same at Github, but the satisfactory end result might also be helpful here.
These are my steps in getting phpVirtualBox 5.2 working on PHP 7.2 and Ubuntu Server 18.04 in case they might help others.
First, I followed steps from an excellent how-to with two notable exceptions. One is changing all 7.1 references there to 7.2. The other is getting the newer phpvirtualbox 5.2 from a different source.
I purged all old my installed php packages php, php7.0, php7.1, php7.2 and then did an autoclean.
During my apt-get update the "…public key is not available…" problem for the Ondřej Surý repository problem was resolved by entering this single-command solution:
Next was installing php-7.2-fpm and related modules by modifying this command from the how-to by changing all 7.1s to 7.2s:
And making a minor change in the Apache2 configuration file and creating a test PHP file:
Finally I restarted the Apache2 and PHP services, and went to http://(my local domain)/phpinfo.php and http://(my local domain)/phpvirtuablbox.php for results with everything working.