Hello. I have a Problem. When I tried to login, I have "An unknown PHP error occurred. This is most likely a syntax error in config.php in phpVirtualBox's folder. The most common errors are an unclosed quote or a missing semicolon in a configuration item that has been entered (e.g. location, username, or password).
Depending on your PHP configuration, navigating directly to config.php in your web browser may display the PHP error message." ERROR... I tried to downgrade from php7 to php5.6 - but have error about SOAP. And I understand, that php5 not supported by ubuntu till 16.04.
Thanks for your product, I hope - you can try to check this issue.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not sure it helps, but I banged my head against Ubuntu 16.04 and phpvirtualbox for DAYS. It seems "they" are still working the wrinkles out of systemd and vboxweb-service.
Also ensure you are NOT running VBox 5.1x -- if you try workarounds to make it work with phpvirtualbox 5.0x (comment out version checks,etc) it can send you down a bad road of hacking about in endpoints\api.php -- once I got everything back to a known good config -- PHPVB 5.0x and VB 5.0x with only VB 5.0x extensions, I was able to only fight with vboxweb-service -- eventually settling on the fact that running the start script (/usr/lib/virtualbox/vboxweb-service.sh) worked great, but something isn't quite kosher with the service descriptor for systemd (/lib/systemd/system/vboxweb-service.service).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for this post - it worked for me after some trying.
One error I had that maybe others on the thread may learn from is upgrading to phpVirtualBox 5.05 for PHP 7.0 support. I had been pulling my hair out trying to figure out why I couldn't get by the config.php error (I had v5.04 installed). Upgrading to 5.05, and ensuring php-xml and php-soap were installed and active did the trick (FYI - confirm that both php-xml and php-soal are active - I created a simple test.php with phpinfo(); in the body to confirm). Hope this helps someone.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello. I have a Problem. When I tried to login, I have "An unknown PHP error occurred. This is most likely a syntax error in config.php in phpVirtualBox's folder. The most common errors are an unclosed quote or a missing semicolon in a configuration item that has been entered (e.g. location, username, or password).
Depending on your PHP configuration, navigating directly to config.php in your web browser may display the PHP error message." ERROR... I tried to downgrade from php7 to php5.6 - but have error about SOAP. And I understand, that php5 not supported by ubuntu till 16.04.
Thanks for your product, I hope - you can try to check this issue.
same issue solved installing php-xml
sudo apt-get install php-xml
I too had the same issue but managed to get it working by checking all the php requirements were met.
However I am as yet unable to get the 'console' working in any browser.
Last edit: Rich Bos 2016-04-27
I updated my Ubuntu Server to 16.04 today and I have the same problem now.
An "apt install php-xml" didn`t work. It made no difference.
I also just upgraded to Xenial. Added php-xml and still no joy. I presume my system is now missing something which it had previously?
I should have googled more, but hey now I can help others here.
Follow this guide. As I thought something else needed to be installed.
https://www.howtoforge.com/tutorial/managing-a-headless-virtualbox-installation-with-phpvirtualbox-on-ubuntu-16.04/
Hello Steven,
what exactly is it, that has to be installed?
Thank you in advise
I know now. The missing parts are: libapache2-mod-php7.0 and php7.0-soap
and
didn't solve the "config.php" error in ubuntu server 16.04 with php7
Last edit: Eduardo Caron 2016-09-02
Not sure it helps, but I banged my head against Ubuntu 16.04 and phpvirtualbox for DAYS. It seems "they" are still working the wrinkles out of systemd and vboxweb-service.
Also ensure you are NOT running VBox 5.1x -- if you try workarounds to make it work with phpvirtualbox 5.0x (comment out version checks,etc) it can send you down a bad road of hacking about in endpoints\api.php -- once I got everything back to a known good config -- PHPVB 5.0x and VB 5.0x with only VB 5.0x extensions, I was able to only fight with vboxweb-service -- eventually settling on the fact that running the start script (/usr/lib/virtualbox/vboxweb-service.sh) worked great, but something isn't quite kosher with the service descriptor for systemd (/lib/systemd/system/vboxweb-service.service).
Thanks for this post - it worked for me after some trying.
One error I had that maybe others on the thread may learn from is upgrading to phpVirtualBox 5.05 for PHP 7.0 support. I had been pulling my hair out trying to figure out why I couldn't get by the config.php error (I had v5.04 installed). Upgrading to 5.05, and ensuring php-xml and php-soap were installed and active did the trick (FYI - confirm that both php-xml and php-soal are active - I created a simple test.php with phpinfo(); in the body to confirm). Hope this helps someone.