Since VirtualBox is an open-source project and VirtualBox offers an API to communicate directly with its virtualization solution, some developers create programs and/or related scripts.
In this tutorial, we will show you how to manage your virtual machines from a web browser using the phpvirtualbox script originally created by Ian Moore, but which was later taken over by Smart Guide.
If you are looking for "phpvirtualbox" on Google, you will find :
In this tutorial, we will use :
Update :
To install a local web server, refer to our tutorial about WAMP which is an easy solution to install a web server : Installing WAMP 2.2, 2.4 or 2.5 and its add-ons
As you can see on the official phpvirtualbox wiki, phpvirtualbox works through the "vboxwebsrv" process which is provided by default with VirtualBox.
To start this process, there are 2 possibilities.
Nevertheless, to begin, simply open a command prompt (cmd) and use the command below :
Batch
"%ProgramFiles%\Oracle\VirtualBox\vboxwebsrv.exe" -H 127.0.0.1 >nul
You will get a result like this :
Plain Text
Oracle VM VirtualBox web service Version 5.2.8 (C) 2007-2018 Oracle Corporation All rights reserved.
Then, unzip the "phpvirtualbox-x.x-x" file downloaded from GitHub and unzip this file into a subfolder of the "www" folder (or "c:\wamp\www" in the case of WAMP).
Then, rename the "config.php-example" file to "config.php".
In this file, change these attributes :
Note : the list of languages is available in the "languages" folder of phpvirtualbox.
In order for phpvirtualbox to communicate with the VirtualBox API, you must enable PHP's "php_soap.dll" extension.
To do this, open the "php.ini" file of PHP, and locate the "extension = php_soap.dll" line.
If not, you will see the error : PHP does not have the SOAP extension enabled.
For this change to be taken into account, don't forget to restart your web server (apache).
In the case of WAMP, you will have to restart the "wampapache" service.
By default, login credentials for phpvirtualbox are : admin / admin.
Once logged in, go to : File -> Change Password.
Important : if the connection fails and the error returned by phpvirtualbox is "Error logging in to vboxwebsrv", make sure you have specified the credentials of your Windows session in the "config.php" file.
In addition, your Windows session must be password protected. Otherwise it will not work and this error will also show.
Enter the current password (by default : admin) and enter your new password.
The admin password has been changed.
Virtualization 8/30/2019
Virtualization 8/25/2018
Virtualization 7/22/2018
Virtualization 11/6/2020
Pinned content
InformatiWeb Pro
Contact
® InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment