Scaling PHP in the Cloud

HasGeek’s seventh event, focusing on the challenges of scaling from single to multi-server deployments for PHP-based websites.

Building your own virtual cloud environment

Submitted by Gautham Pai (@buzypi) on Jun 9, 2011

Section: Deployment Technical level: Intermediate Session type: Demo Status: Confirmed & Scheduled


Creating a completely replicable multi-server setup in your laptop or development sandbox for testing purposes


As developers we have seen these problems:

Our development environments accumulate lots of applications and libraries over a period of months.

We are usually in the habit of installing everything in one machine.

We fear that we may screw up our development environment and that means unproductive man-hours.

We forget that a multi-machine deployment is different from a single machine deployment.

How about virtualization in the desktop?

In this demo, I will take you through the steps to create a multi-VM development environment.

This demo will make use of QEMU, KVM and Virt Manager and show you how you can create a VM image, and then start servers with a set of commands, deploy your app, test everything and tear down the environment once you are happy - all this in the cosy comforts of your laptop or desktop.


Knowledge of deploying apps in the cloud (Amazon AWS or something else) is helpful

Knowledge of Virtualbox or QEMU is a plus




  • Kiran Jonnalagadda (@jace) Crew 9 years ago

    That’s a great idea. Testing for the cloud is a pain. My development environment is just one laptop with everything on localhost, so all kinds of things break mysteriously in a multi-server setup.

    A way to reproduce that environment for testing would be great.

  • Gautham Pai (@buzypi) Proposer 9 years ago

    rithish - this is about setting up a quick cloud environment in your laptop to test configurations, than to actually setup the entire dev environment in the cloud. The former is required by startups which can’t afford a full cloud setup for a dev/staging environment and would like to minimize their costs, while still being able to test their applications in a setup that mimics their production environment.

  • rithish (@rithish) 9 years ago

    Maybe someone from can take this up? I have heard that even their dev environment is on the cloud…

    • Kiran Jonnalagadda (@jace) Crew 9 years ago

      I’ve spoken to them and they said they’d consider, but haven’t heard back.

  • Gautham Pai (@buzypi) Proposer 9 years ago

    If there are enough people interested, I could perhaps take this up - although frankly, I don’t have everything working as yet.

  • Gautham Pai (@buzypi) Proposer 9 years ago

    I have started documenting the content that I intend to use over here:

  • visuthemoon (@vissuthedatascientist) 9 years ago

    I would like to attend:

  • Pavan Yara 9 years ago

    Great! I’m proposing something similar but with “Eucalyptus” open source software.

    Gautham: Was wondering if you have decided on the agenda and tools for the session (i.e., apart from KVM and Ubuntu)?

  • Gautham Pai (@buzypi) Proposer 9 years ago

    Hello Pavan,
    I am not looking at the use of Eucalyptus so I think it will be complementary.
    I am evaluating Fabric/Chef/Puppet/Ensemble.
    I will keep that document updated.

  • brindha D (@brindha) 7 years ago

    Hai Gautham, i’m brindha. will you help me in the setup of cloud environment

  • Vijindra Rajendran (@vijindra) 6 years ago

    hi, i am vijindra, can u help me about how to create a cloud environment using a laptop?
    my email id is
    kindly send me if you have any procedures.
    thanks in advance :)

  • Amol Mahadeo Hakke (@amol600467) 4 years ago

    hi, i am Amol, can u help me about how to build cloud environment on a laptop?
    my email id is
    plz send me about that.
    thanks in advance :)

  • vinay babu (@yashavantha) 4 months ago

    Very nice Content bro

Login to leave a comment