My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
WebServerAndPHPInstall  
Web Server and PHP installation / configuration
Deploy
Updated Mar 1, 2011 by imooreya...@gmail.com

Introduction

phpVirtualBox requires a web server with PHP >= 5.1.0 installed in order to run. The following may help you install these on the machine on which you intend to run phpVirtualBox. If you already have a web server with PHP installed, you may simply copy phpVirtualBox to the document root folder of that web server.

Windows

On Windows, instead of mucking around with IIS, you may install XAMPP or XAMPPLite from http://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 C:\xampp\htdocs or C:\xampplite\htdocs.

Linux

The details of installing a web server and PHP differ greatly from distribution to distribution. Please follow the instructions for your Linux distribution as provided by the distribution maintainer(s). In most cases, you simply install apache2 and the apache2 php5 module using your distribution's package management system. E.g.

apt-get install apache2
apt-get install libapache2-mod-php5

After installation, copy phpVirtualBox to the document root of your web server. This is typically /var/www or /usr/local/apache2/htdocs.

OS X

On OS X, you may install XAMPP or XAMPPLite from http://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/.

Solaris

On Solaris, you may install XAMPP or XAMPPLite from http://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/.

Post Installation

Once the web server is installed you may launch phpVirtualBox by navigating to:

http://HOSTNAME-OR-IP/phpVirtualBox

Where HOSTNAME-OR-IP is the hostname or IP address of the machine running the web server. If this is the same computer that you are using to view this page, you may use http://localhost/phpVirtualBox.

Comment by apexx...@gmail.com, Jul 27, 2010

This might also be a nice option: hiphop-php it transforms php to c++ which is then compiled using g++ it also includes a stand alone webserver.. Pro's no php installation is needed on the host system (or apache2 etc for that matter) and it runs faster than scripted php :)

http://wiki.github.com/facebook/hiphop-php/

Comment by project member imooreya...@gmail.com, Jul 28, 2010

It does look promising, however "At the moment, HipHop? can only run on 64 bit systems." :(

Comment by mzxgi...@gmail.com, Aug 10, 2010

Something that may need to be added is the note that it requires JSON extensions (this issue frustrated me to no end in Gentoo, where it's not standard)

Comment by project member imooreya...@gmail.com, Aug 10, 2010

Hello mzxgiant. Can you provide instructions for Gentoo users? I can add it to this page.

Comment by luke.sta...@gmail.com, May 25 (3 days ago)

a better example command line would probably be: sudo apt-get install apache2 libapache2-mod-php5


Sign in to add a comment
Powered by Google Project Hosting