Web server and PHP installation
Introduction
phpVirtualBox requires a web server with PHP >= 5.1.0 installed in order to run. Moreover, some php extensions need to be enabled : php-xml, php-json and php-soap. The following may help you install these on the machine on which you intend to run phpVirtualBox.
Contents
On Windows, instead of mucking around with IIS, you may install XAMPP or XAMPPLite from [www.apachefriends.org]. The installation is very straight-forward and includes a recent version of PHP (certainly greater than 5.1.0).
After installation, launch the XAMPP control panel and click "Config" next to Apache, then "PHP (php.ini)". It will open the php configuration file "php.ini" in notepad.
Uncomment the following line (E.G. remove the ";") and close the file after having saved the changes.
;extension=php_soap.dll
In the XAMPP control panel, click "Start" next to Apache.
You can copy phpVirtualBox to XAMPP's htdocs folder. Typically C:\xampp\htdocs or C:\xampplite\htdocs.
The details of installing a web server and PHP differ greatly from distribution to distribution. In most cases, you simply have to install apache2 and the apache2 php module (>=5.1.0) using your distribution's package management system. Please follow the instructions for your Linux distribution as provided by the distribution maintainer(s).
The following gives basic instructions for common Linux distributions, without any warranty.
Note : The following must be done as root user.
The following has been tested with Debian 8 "Stretch", Ubuntu 17.10 "Artful" and Mint 18.3 "Sylvia".
- Install the required packages :
- The previous command should automatically enable apache php module. If it's not the case, you can run the following commands :
apt-get install apache2 libapache2-mod-php php php-soap php-xml
a2dismod mpm_event mpm_worker a2enmod mpm_prefork php7.X
You have to replace "X" in the last command depending on the php version provided with your Linux distribution (7.0, 7.1, 7.2, ...).
Your web server should be ready for phpvirtualbox installation.
The following has been tested with Fedora 27.
- Install the required packages :
- To enable apache php module, you have to edit the file /etc/httpd/conf.modules.d/00-mpm.conf. Comment or uncomment the relevant lines so that this file contains :
dnf install httpd php php-json php-soap php-xml
LoadModule mpm_event_module modules/mod_mpm_event.so #LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
Your web server should be ready for phpvirtualbox installation.
The following has been tested with CentOS 7.4.
- Install the required packages :
- Apache php module should be enabled without any further configuration.
yum install httpd php php-soap php-xml
Your web server should be ready for phpvirtualbox installation.
The following has been tested with up-to-date Arch Linux as of 2017 December.
- Install the required packages :
- Edit the file /etc/httpd/conf/httpd.conf in order to enable apache php module :
- Comment or uncomment the relevant lines so that this file contains :
LoadModule mpm_event_module modules/mod_mpm_event.so #LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
- Add the following line after the last "LoadModule" directive :
- Add the following line after the last "Include" directive :
- Uncomment the following line in /etc/php/php.ini in order to enable required php extension :
pacman -S apache php php-apache
LoadModule php7_module modules/libphp7.so
Include conf/extra/php7_module.conf
;extension=soap.so
Your web server should be ready for phpvirtualbox installation.
On OS X, you may install XAMPP or XAMPPLite from [www.apachefriends.org]. The installation is very straight-forward and includes a recent version of PHP (certainly greater than 5.1.0).
After installation, launch the XAMPP control panel and click Start next to Apache. You can copy phpVirtualBox to XAMPP's htdocs folder. Typically /Applications/XAMPP/htdocs/.
On Solaris, you may install XAMPP or XAMPPLite from [www.apachefriends.org]. The installation is very straight-forward and includes a recent version of PHP (certainly greater than 5.1.0).
(Assuming you kept the default installation path) After installation, run the following command as root:
/opt/xampp/xampp startapache
You can copy phpVirtualBox to XAMPP's htdocs folder. Typically /opt/xampp/htdocs/.