This is an old revision of the document!


Web Development

The purpose here is to build a virtual machine that will be used as a LAMP web development environment.

It will be based on a Debian Wheezy OS, with an Apache2 HTTP server, allowing to select a specific PHP version to run for each virtual host through PhpFarm run via suexec.
We'll also add Xdebug to facilitate PHP code debugging.

Finally, MySQL will also be installed as database management system.



Install a Debian Wheezy system from Debian's stable netboot-mini.iso image.

You can refer to this section of the wiki for more in-depth information on how to do this.

We'll have 2 adapters set up for this VM, one for local communication on a 172.20.20.x address and another one for internet access via DHCP.


Add sysadmin to sudoers


After the system reboots at the end of the installation, login as root and install the sudo package:

# apt-get install sudo

As the sysadmin user was created during the Debian install process we only need to add it to the sudoers group:

# usermod -G sudo -a <sysadmin>

Logout from the root session, login as sysadmin and test your sudo power:

# exit
login: sysadmin
Password:
$ sudo ifconfig

If all is well, you should see the output from the ifconfig command.


It is now time to install the HTTP Server (Apache2).