PHP TestFest VM Documentation - Guest Environment

Documentation Home

The guest operating system is UbuntuServer 8.10. This OS is headless so all management occurs from the command line.

OS User

The user for logging in and managing the OS is "tester" and the password is "1234".

The OS does not have a root user installed, so all root required commands should be run using sudo and the password "1234".

OpenSSH Server

SSH is installed on the server and it's recommended that you shell into the server from the host in order to use the VM. You can shell in using localhost and port 2222.

ssh -p 2222 tester@localhost

It's also recommended that you use SCP to send files from the host to the guest and vice-versa. You can use localhost and port 2222.

scp -P 2222 php5.2.tar.gz tester@localhost:~/src/

Databases

MySQL, Firebird and Postgresql are all installed. The password for the root user of MySQL is "1234". Firebird and Postgresql don't have any passwords set.

Packages

There are quite a few libraries pre-installed in order to support a large number of PHP extensions which are already built into each PHP source version.

All software (with the exception of PHP itself) have been installed using apt-get. So they are all updatable using:

sudo apt-get update
sudo apt-get upgrade

PHP

The ~/src directory contains recent PHP 5.2, PHP 5.3 and PHP 6.0 source code snaps which have been configured and compiled. As PHP 5.3 is currently the main focus of testing, PHP 5.3 has been installed. But you can write and run tests from any of the version source directories.

Apache 2

The Apache2 configuration file is located at:
/etc/apache2/httpd.conf

Apache2 is set to start on boot.

You can start Apache2 manually with:

sudo /etc/init.d/apache2 start

You can stop Apache2 manually with:

sudo /etc/init.d/apache2 stop

Apache2 is mapped to 127.0.0.1 by default and it's document root is: /var/www. You'll notice there is already an info.php file located there which simply contains the phpinfo(); function call.

You can access Apache from the hosting using localhost and port 8080.

http://localhost:8080/info.php